This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

When you will implement the HTML5 video loop attribute?

  • 3 fhreagra
  • 472 leis an bhfadhb seo
  • 2 views
  • Freagra is déanaí ó rthawkcom

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.

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.

All Replies (3)

A quick Jquery solution

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

Athraithe ag TimVs.be ar

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

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

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