Advertisement
Guest User

Untitled

a guest
Mar 29th, 2011
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <video id="movie" width="550" height="300" preload controls autoplay>
  2. <source src="movie.webm" type='video/webm; codecs="vp8, vorbis"' />
  3. <source src="movie.ogv" type='video/ogg; codecs="theora, vorbis"' />
  4. <source src="movie.mp4" />
  5. <object width="550" height="300" type="application/x-shockwave-flash"
  6. data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
  7. <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
  8. <param name="allowfullscreen" value="true" />
  9. <param name="flashvars" value='config={"clip": {"url": "movie.mp4", "autoPlay":true, "autoBuffering":true}}' />
  10.  
  11. </object>
  12. </video>
  13. <script>
  14. var v = document.getElementById("movie");
  15. v.onclick = function() {
  16. if (v.paused) {
  17. v.play();
  18. } else {
  19. v.pause();
  20. }
  21. };
  22. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement