Video for Everybody


/ Published in: HTML
Save to your folder(s)

[via rtcrm]
Video for Everybody is very simply a chunk of HTML code that embeds a video into a website using the HTML5 `` element which offers native playback in Firefox 3.5 and Safari 3 & 4.

This is native OGG video playback in Firefox 3.5 (you get H.264 playback in Safari). No plugins to install. The video is played by the browser itself. It loads quickly and doesn’t threaten to crash your browser.

In other browsers that do not support ``, it falls back to Adobe Flash:
You can host locally or embed any Flash file, such as a YouTube video.

If Flash is not installed, QuickTime is used which allows playback on the iPhone.

If QuickTime is not installed then Windows Media Player is used in Internet Explorer 8 for Windows 7. This means that it is actually almost impossible for the video to not play in IE8 on Windows 7. Even without Flash and QuickTime, you’d have to disable Windows Media Player or all ActiveX entirely!

Finally, if all else fails, a warning is issued that provides links to download the video, and links to software relevant to getting the video to play within the browser itself. Since this is just HTML, you can put anything here you want.

URL: http://camendesign.com/code/video_for_everybody

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.