is it possible flowplayer first play with html5 then flashplayer -


my videos in amazon , want play video flowplayer or jwplayer.but requirement video first try play in html5 if not possible go flash mode. need combination of html5 embed code , flash embeded code.the embed code automatically detect if requesting device can play html5. if so, serve code. if not, serve flash version

i know it's been sometime since question asked, in case else looking answer can try

<video width="video-width" height="video-height" controls preload="auto"> <source src="video-path.m4v"  type="video/mp4"> <source src="video-path.ogv" type="video/ogg"> <object class="aligncenter" type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="560" height="315">     <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">     <param name="allowfullscreen" value="true">     <param name="wmode" value="transparent">     <param name="flashvars" value="config={'clip': {'url':'video-path.m4v','autoplay':false, 'autobuffering':true }}">     <p>your browswer not support video...</p> </object> </video> 

replace “video-width” , “video-height” video dimensions, , replace “video-path” full url of video, , you’re go.

one important note: mp4/m4v video files not play in firefox. , if use html5 video tag, firefox won’t fallback flash, either. show blank box. need include ogv file format in addition mp4.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -