Created
February 6, 2012 19:53
-
-
Save daneden/1754400 to your computer and use it in GitHub Desktop.
HTML5 Video with flash fallback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* HTML5 Video with flash fallback */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- "controls" enables native play, pause etc, "poster" is the image seen before play --> | |
<video controls width="360" height="240" poster="placeholder.jpg"> | |
<!-- open source video for open source browsers --> | |
<source src="movie.ogv" type="video/ogg"> | |
<!-- proprietary video for supported browsers (only the first supported video format will load though) --> | |
<source src="movie.mp4" type="video/mp4"> | |
<!-- flash fallback --> | |
<object type="application/shockwave-flash" width="360" height="240" data="player.swf?file=movie.mp4"> | |
<param name="movie" value="player.swf?file=movie.mp4"> | |
<!-- and finally, a good old fashioned link for non-flash --> | |
<a href="movie.mp4">Download the movie</a> | |
</object> | |
</video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment