Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <video id="movie" width="550" height="300" preload controls autoplay>
- <source src="movie.webm" type='video/webm; codecs="vp8, vorbis"' />
- <source src="movie.ogv" type='video/ogg; codecs="theora, vorbis"' />
- <source src="movie.mp4" />
- <object width="550" height="300" type="application/x-shockwave-flash"
- data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
- <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
- <param name="allowfullscreen" value="true" />
- <param name="flashvars" value='config={"clip": {"url": "movie.mp4", "autoPlay":true, "autoBuffering":true}}' />
- </object>
- </video>
- <script>
- var v = document.getElementById("movie");
- v.onclick = function() {
- if (v.paused) {
- v.play();
- } else {
- v.pause();
- }
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement