X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

When you will implement the HTML5 video loop attribute?

Posted

I know there is an add-on "Media Loop" for Firefox that implements the loop attribute for HTML5 videos/audios, but I don't want to force every visitor of my site to install it.

Additional System Details

Installed Plug-ins

  • Version 1.0.20.8768
  • Shockwave Flash 10.1 r53
  • Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Java Information.
  • Gecko default plugin
  • npmnqmp 07051001
  • Octoshape Streaming Services web integration browser plug-in
  • DivX Browser Plug-In: Plays DivX video in your browser!
  • JoostPlugin plug-in
  • Version 0.8.6, copyright 1996-2008 The VideoLAN Teamhttp://www.videolan.org
  • Office Live Update v1.0
  • 4.0.50401.0
  • QuickTime Plug-in mahdollistaa www-sivuilla olevien multimediakomponenttien esittämisen käytettäessä www-selainta. Katso lisää QuickTime.

Application

  • User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; fi; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

More Information

TimVs.be 0 solutions 1 answers

Helpful Reply

A quick Jquery solution

  • $("#yourID").bind('ended', function(){
  • this.play();
  • });

Modified by TimVs.be

dsotirescu 0 solutions 1 answers

Helpful Reply

or just add to the video tag: onended="this.play()" No need for Jquery!

rthawkcom 0 solutions 1 answers

Just how do you add it to the video tag!? Next time, post a working example.

document.getElementById('video').addEventListener("ended", function(){this.play();});