|
Project Information
Members
Links
|
video4allBringing <video> tag support to archaic browsers that don't support it! DemoWant to see it in action? Check out the demo here! Everything you'll need for now is in the source, but it's not packaged up nicely yet. Browser Supportvideo4all brings basic <video> support to at least 95+% of all released browsers (FF2.0+, IE6+ and some of the other tested browsers according to StatCounter). Tested and working in:
Not working on:
Current Issues
Technical DetailsHow does it work? For IE browsers, we use an HTC behavior file to specify that <video> tag elements will run a given piece of javascript. This javascript inserts a compatible <object> tag inside the <video> element, playing the video as if the browser supported it. For browsers without dynamic binding languages, an interval timer is set up that looks for new <video> tags every few seconds and processes them. Does it support all the <video> bells and whistles? No, at this time it supports the autoplay and autobuffer attributes only. It should be possible to transmit events from the flash player to Javascript code to emulate some of the events, but this hasn't been implemented. How do I use it? Download the files (distribution coming soon) and insert the following code in the <head> section of your page: <script src="video4all.js" type="text/javascript"></script> In the body of your document, use the HTML video tag, making sure you provide both Ogg and MP4 alternatives (which is required as a bare minimum to support FF3.5 and Safari 4 today): <video> <source src="video.ogg" type="video/ogg" /> <source src="video.mp4" type="video/mp4" /> </video> |