Tuesday, July 14, 2009

HTML is code, too! Code for the Web!

HTML 5 should support VIDEO FOR EVERYBODY!

Ok, here's the scoop. We all know how Firefox 3.5 and Safari (and Opera?) support the video element right? Today I came across an interesting article and letter surrounding what to do when the video element isn't supported. Turns out that using JavaScript is not a very portable way of doing things. Kroc Camen advocates the use of Video for Everybody. He is the author of the above letter. I'm happy, after reading the previous articles and pages, to learn that Mozilla was quick to respond to his criticisms, and begin advocating some "safer" alternatives, including Video for Everyone.

The code for Video for Everybody, by Kroc Camen, covered under a Creative Commons license (cc-by):



<video width="640" height="480" controls="controls">
<source src="__MY_VIDEO__.ogv" type="video/ogg" />
<source src="__MY_VIDEO__.mp4" type="video/mp4" />
<object width="640" height="500" type="application/x-shockwave-flash"
data="__FLASH_PLAYER__.swf" flashvars="file=__MY_VIDEO__.mp4"
> <param name="movie" value="__FLASH_PLAYER_.swf" />
<param name="flashvars" value="file=__MY_VIDEO__.mp4" />
<!--[if gt IE 6]>
<object width="640" height="495" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B">
<param name="src" value="__MY_VIDEO__.mp4" /><!
[endif]--><!--[if gt IE 6]><!-->
<object width="640" height="495" type="video/quicktime" data="__MY_VIDEO__.mp4"
> <param name="src" value="__MY_VIDEO__.mp4" />
<!--<![endif]--><p>
<strong>No video playback capabilities detected.</strong>
Why not try to download the file instead?<br />
<a href="__MY_VIDEO__.mp4">MPEG4 / H.264 “.mp4” (Windows / Mac)</a> |
<a href="__MY_VIDEO__.ogv">Ogg Theora & Vorbis “.ogv” (Linux)</a>
</p><!--[if gt IE 6]><!--></object><!--<![endif]-->
<!--[if gt IE 6]></object><![endif]-->
</object>
</video>



No comments:

Post a Comment