EFlowPlayer ¶
Yii extension for the flowplayer plugin.
Details ¶
- Version 0.3 alpha
- Dimitrios Mengidis
Support ¶
- Yii 1.1.x
- flowplayer 3.2.6
Description ¶
This is an alpha version of the extension. It supports only the basic configuration.
Use ¶
Here are some examples on how to use this extension.
Minimal ¶
The most minimal code to get a video.Example:
$this->widget('ext.EFlowPlayer.EFlowPlayer', array(
'flv'=>"http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv",
));
With style and id ¶
If we want to set some html options to the video container.Example:
$this->widget('ext.EFlowPlayer.EFlowPlayer', array(
'flv'=>"http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv",
'htmlOptions'=>array(
'id'=>'testingplayer',
'style'=>'width: 320px; height: 160px;',
),
));
I need more videos ¶
Asceding style ¶
If we want to set some html options to the video container.Example:
$this->widget('ext.EFlowPlayer.EFlowPlayer', array(
'flv'=>array(
'http://ringtales.s3.amazonaws.com/d182.flv',
'http://ringtales.s3.amazonaws.com/d181.flv',
'http://ringtales.s3.amazonaws.com/d180.flv',
),
'htmlOptions'=>array(
'id'=>'video-',
'style'=>'width: 320px; height: 160px;',
),
));
Result of this code will be 3 containers with id video-
+ key of the video url position in the array, like:
- container with id
'video-0'
points tod182.flv
- container with id
'video-1'
points tod181.flv
- container with id
'video-2'
points tod180.flv
Associative array ¶
If we want to set some html options to the video container.Example:
$this->widget('ext.EFlowPlayer.EFlowPlayer', array(
'flv'=>array(
'd180'=>'http://ringtales.s3.amazonaws.com/d180.flv',
'd181'=>'http://ringtales.s3.amazonaws.com/d181.flv',
'd182'=>'http://ringtales.s3.amazonaws.com/d182.flv',
),
'htmlOptions'=>array(
'id'=>'testingplayer',
'style'=>'width: 320px; height: 160px;',
),
));
Mixed ¶
This is a way to use associative array and asceding style. Although i think of something dangarous and akwark there still a posibility. Example:
$this->widget('ext.EFlowPlayer.EFlowPlayer', array(
'flv'=>array(
'http://ringtales.s3.amazonaws.com/d180.flv',
'http://ringtales.s3.amazonaws.com/d181.flv',
'd180'=>'http://ringtales.s3.amazonaws.com/d180.flv',
'd181'=>'http://ringtales.s3.amazonaws.com/d181.flv',
),
'htmlOptions'=>array(
'id'=>'testingplayer',
'style'=>'width: 320px; height: 160px;',
),
));
CHANGELOG ¶
Version 0.3 ¶
- Flv support array.
Version 0.2 ¶
- Flv url as string.
- Support for different tags as video container.
- Support for htmlOptions.
- Support for external swf file.
Version 0.1 ¶
- Initial release
- Registering js code.
Resources ¶
- Yii extension site
- flowplayer
- Repository
- while(true)
(This base code was generated with the gii-extension-generator)
the assets folder is missing flowplayer.controls-3.2.5.swf
the assets folder is missing flowplayer.controls-3.2.5.swf
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.