HTML5 Video is simply an agreement to play certain video formats with a new element for which browsers will implement their own player. HTML5 does not provide players or anything like that.
You should look for codecs and be supported by most browsers, which, if I remember well, are mostly Theora for Video and Vorbis for audio in an OGG container.
Then I remember that Webkit browsers will support Matroska (MKV) containers, using V8 as a video codec and Vorbis for audio.
My recommendation: provide an OGG file with Theora and Vorbis as video and audio codecs, respectively. Inside there is a backup using the MKV file with V8 and Vorbis, and then, if possible, inside the MPG video file using Mpeg2 and MP2 (could not think of something better) as video and audio codecs. Then, as a last resort, the Flash player plays the FLV video file.
<video src="thevideo.ogg"> <video src="firstFallback.mkv"> <object type="video/mpeg" src="secondFallback.mpeg"> <object type="application/x-shockwave-flash" src="player.swf?etc..."> <p>Download <a href="videourl">the video etc...</a><br /> or use a more modern browser to watch online, etc...</p> </object> </object> </video> </video>
Etc ...; -)
In this configuration, most (if not all) browsers should be able to play your video, preferring the most supported (and most modern) format. "Fallbacking" until they find Flash Player.
For tips on which formats to support: see part of the HTML5 video on Wikipedia.
Important. In your code, you refer to an absolute file system path that is completely unavailable to the visitor. Perhaps in src you meant / video / file2.m4v.
source share