I just coded a cross-browser video player with automatic conversions through ffmpeg and it works good in all browsers. Since they all display different controls I figured I'd use VideoJS to style them.
This is my demo page: http://www.animero.com/2012/produktioner/jakobsson-pr-vegibar/
The skinned controls should be visible in all modern browsers that support the html5 video tag. Though, my issue is with IE8. The fallback does not seem to work, because I am only getting a black box that says "Movie not loaded..." but the audio is still playing.
This is my markup:
<div class="video-js-box">
<video id="my_video_1" class="video-js vjs-default-skin" width="790" height="444" poster="<?php echo $videoFiles['poster']; ?>" preload autoplay controls data-setup="{}">
<source src="<?php echo $videoFiles['mp4']; ?>" type="video/mp4" />
<source src="<?php echo $videoFiles['ogv']; ?>" type="video/ogg" />
<object id="flash_fallback_1" class="vjs-flash-fallback" width="790" height="444">
<embed width="790" height="444" src="<?php bloginfo('stylesheet_directory'); ?>/spelare.swf?image=<?php echo $videoFiles['poster']; ?>&video=<?php echo $videoFiles['flash']; ?>" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object>
</video>
</div>
When I turn off VideoJS everything works great, and in IE8 my flash-player works good. Could anyone help me with this?
Thanks in advance, Jonathan
<object>part as video-js does automatically insert this for you if your browser does not support the<video>tag. - acme