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/
videojs folder under protected/extensions.The bare minimum configuration needs:
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, ), ));
Total 5 comments
Hi, I am facing a problem to disable video downloading from my website. Is there anyone who can tell me about how can I disable video downloading from my website.
With Thanks,
mrs
Hi all, This is a nice useful extension that helps me a lot.
Thanks for your great work.
mrs
New EVideoJS.php
Diff to previous version:
Hello Alex,
Concatenation slows down the process because PHP must add strings together. Just a micro-optimization.
I made it this way because, in my needs at least, the activation can be triggered by code like you wrote or via the JQuery plugin provided (see "Adding VideoJS to your page."). Anyway, probably would be helpful to have a param to auto-activate.
I started a thread in the forum to discuss about this extension: http://www.yiiframework.com/forum/index.php?/topic/16592-evideojs/
Hope this helps.
Best wishes, Marco
You have a nice widget, however, i would be glad to say something about it:
1) why you print out with echo in manner of many params instead of concatenate a string ? you do this
instead of this
2) when you register assets, and publish css and js files, you should also execute js inicialization script, such as this:
BTW, mp4 videos don't work on firefox.
I got your extension BTW wich this corrections i made, contact me if you want me to send you. alexserverone at gmail dot com
regards.
Leave a comment
Please login to leave your comment.