Return to Snippet

Revision: 40754
at February 7, 2011 09:03 by blueocto

Initial Code
<video width="320" height="240">
	<source src="myvideo.mp4" type="video/mp4" />
	<source src="myvideo.ogv" type="video/ogg" />
	<source src="myvideo.webm" type="video/webm" />
	<p>Sorry, your browser cannot play this video.</p>
	<img src="videofail.png" />

Initial URL

Initial Description
Until recently, playing video files in a web page was notoriously complicated. The user requires a Flash or Silverlight plug-in and even the simplest HTML is a confusing mess.

Few HTML5 features excite developers more than native audio and video. The <audio> and <video> tags allow you to play media files in an HTML5-aware browser without a plug-in. The elements also become part of the DOM so you can create your own player controls, add captions and synchronize JavaScript events with media playback. As a bonus, the basic HTML5 code is far easier to understand.

Initial Title
Cross-Browser HTML5 Video With Flash or Silverlight Fall-back

Initial Tags
flash, video, html5

Initial Language