This extension is based on the work of istrone http://www.yiiframework.com/extension/jwplayer/ I created the script to manage displaying more than one video in the same page with a modal box the script is done to manage flv file or youtube video (by calling youtube url)
Requirements ¶
Tested on Yii 1.1.*
Usage ¶
1-Unzip folder in extensions folder. 2-call widget in the classical way
<?php $this->widget('ext.jwplayer.JwPlayer',array('autoStart'=>false)); ?>
3-create a link with an image thumb for example (when clicked jbox model will be displayed with jwplayer) you have to note that in the link tag you must specify class attribute as "fancybox_vid" like the folowing example:
<a href="flv_link_here" title="jwplayer_video_someId" rel="gallery2" class="fancybox_vid">
<img src="/thumbs/someImage.jpg">
</a>
4-create code for jbox modal (used by the script to display video), you have to note that id="jwplayer_video_someId" have to be the same as title attribute of link tag.
<div class="jwbox_hidden">
<div id="jwplayer_video_someId" class="jwbox_content"></div>
</div>
Resources ¶
For more informations:
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.