Skip to content

Instantly share code, notes, and snippets.

@miguel12345
Created November 28, 2013 20:02
Show Gist options
  • Select an option

  • Save miguel12345/7697432 to your computer and use it in GitHub Desktop.

Select an option

Save miguel12345/7697432 to your computer and use it in GitHub Desktop.
Videos and fallbacks
<video id="news" width=640 height=480 controls preload> <!-- WebM format for Firefox and Chrome --> <source src="news.webm" type='video/webm; codecs="vp8, vorbis"'> <!-- H.264 format for IE and Safari --> <source src="news.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> <!-- Fall back on the Flash plugin --> <object width=640 height=480 type="application/x-shockwave-flash" data="flash_movie_player.swf"> <!-- Param elements here configure the Flash movie player you're using --> <!-- Text is the ultimate fallback content --> <div>video element not supported and Flash plugin not installed.</div> </object> </video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment