Flash video player to html5 fallback
May 15th, 2010
There’re many javascripts [1,2] to do html5 to flash fallback.
I slightly modified this script to do the opposite. It will normally play in a flash player whenever possible, but with html5 video on devices like ipad.
Here is my modified js file. You will also need google loader and open video player.
Add this to your html head
<script src="http://www.google.com/jsapi"></script> <script src="/static/html5-video.js"></script>
Use html5 video tag as usual.
<video width="592" height="336" preload="none" controls> <source src="http://video.mudy.netdna-cdn.com/elephants_dream_592x336.mp4" type="video/mp4" /> </video>
[1] http://henriksjokvist.net/archive/2009/2/using-the-html5-video-tag-with-a-flash-fallback
[2] http://diveintohtml5.org/video.html