Skip to content

Instantly share code, notes, and snippets.

@ninetwentyfour
Created August 28, 2011 17:05
Show Gist options
  • Save ninetwentyfour/1176926 to your computer and use it in GitHub Desktop.
Save ninetwentyfour/1176926 to your computer and use it in GitHub Desktop.
On HTML5 Video - blogpost
<video src="movie.ogg" controls="controls"></video>
<video width="320" height="240" controls>
<source src="NewOrleans2006.ogv" type='video/ogg; codecs="theora, vorbis"'>
<source src="NewOrleans2006.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</video>
<video width="640" height="360" id="video" poster="http://www.travisberry.com/html5video/videos/copyright/copyright-poster.jpg" controls="true">
<source src="http://www.travisberry.com/html5video/videos/copyright/copyright-desktop.mp4" type='video/mp4; codecs="avc1.64001E, mp4a.40.2"' />
<source src="http://www.travisberry.com/html5video/videos/copyright/copyright-iPhone-cell.3gp" type='video/3gpp; codecs="mp4v.20.8, samr"' />
<source src="http://www.travisberry.com/html5video/videos/copyright/copyright-desktop3.ogv" type='video/ogg; codecs="theora, vorbis"' />
<object width="640" height="385">
<param name="movie" value="http://www.youtube.com/v/lFeI5SqGYJ8&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/lFeI5SqGYJ8&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed>
</object>
</video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment