videojs EVideoJS extends CWidget and implements a base class for the VideoJS player.

  1. Installation
  2. Usage
  3. Resources

EVideoJS extends CWidget and implements a base class for the VideoJS HTML5 Video Player.

Tested with Yii Framework v.1.1.6 and VideoJS 1.3.0.

Support: http://www.yiiframework.com/forum/index.php?/topic/16592-evideojs/

Installation

  • Extract the videojs folder under protected/extensions.

Usage

The bare minimum configuration needs:

  • video_mp4 URL
  • width
  • height

The code below shows common usage and options defaults.

$this->widget('application.extensions.videojs.EVideoJS', array(
	'options' => array(
		// Unique identifier, is autogenerated by default, useful for jQuery integrations.
		'id' => false,
		// Video and poster width in pixels
		'width' => 320,
		// Video and poster height in pixels
		'height' => 240,
		// Poster image absolute URL
		'poster' => false,
		// Absolute URL of the video in MP4 format
		'video_mp4' => false,
		// Absolute URL of the video in OGV format
		'video_ogv' => false,
		// Absolute URL of the video in WebM format
		'video_webm' => false,
		// Use Flash fallback player ?
		'flash_fallback' => true,
		// Address of custom Flash player to use as fallback
		'flash_player' => 'http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf',
		// Show controls ?
		'controls' => true,
		// Preload video content ?
		'preload' => true,
		// Autostart the playback ?
		'autoplay' => false,
		// Show VideoJS support link ?
		'support' => true,
		// Show video download links ?
		'download' => true,
	),
));

Resources

7 0
12 followers
2 388 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: logicoder
Created on: Feb 9, 2011
Last updated: 13 years ago

Downloads

show all

Related Extensions