PDA

View Full Version : How do I loop a video using HTML?



brynjarh
26 Jan 2008, 03:37 PM
How do I set a video to an infinite loop using HTML(and possibly javascript?) that works in IE, Firefox and Safari?

Hob Bramble
29 Jan 2008, 09:53 AM
I assume you mean a video embedded into the page using an "embed" tag? If so, I believe all you need to do is set the "loop" attribute to "true."

I'm not completely sure, as I haven't tried it myself, but that should work.

Edit: I just tested it out with a .mpg file and it worked fine for me (I tested in Internet Explorer 6 & 7, Firefox 2, Opera 9, Maxthon 2, and Netscape 9, using the Quicktime and Windows Media Player plugins), so it should work.