html5 - video.js fallback is not working -
this code
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> <script src="javascripts/video.js-stable/dist/video-js/video.js"></script> <link rel="stylesheet" type="text/css" href="javascripts/video.js-stable/dist/video-js/video-js.css" /> <script> videojs.options.flash.swf ="http://localhost/site/public/javascripts/video.js-stable/dist/video-js/video-js.swf"; </script> <title>video</title> </head> <body> <video id="example_video_1" class="video-js vjs-default-skin" controls="" preload="auto" width="640" height="264" poster="" data-setup='{"example_option":true}'> <source src="http://localhost/site/public/videos/ogg.mp4" type='video/mp4'/> </video> </body> </html>
when play video in firefox 3 firefox crashed , when use firefox 11 play fine...i read somewhere firefox not suported mp4 videos in html5. if mp4 not supported firefox in html5,that means code using flash,because video playing fine in firefox 11,or how can check code using flash fallback. 1 more thing when try play 3gp video show error in modern browser. error:sorry no compatible source , playback technology found. real problem ?? please help. in advcance!!
for more information firefox mp4 support, visit page.
specify multiple alternative media resources compatibility using
source
:<video ...> <source src="video.mp4" type="video/mp4"> <source src="video.ogv" type="video/ogg"> ... </video>
place
object
flash insidevideo
provide fallback:<video ...> <source src="video.mp4" type="video/mp4"> ... <object type="application/x-shockwave-flash" data="flash_player.swf" ...> <param name="movie" value="flash_player.swf"> <param name="flashvars" value="flash-variables"> ... </object> </video>
.3gp
support:<source src='video.3gp' type='video/3gpp; codecs="mp4v.20.8, samr"'>
Comments
Post a Comment