X
Tik hier voor de mobiele versie van de website.

Ondersteuningsforum

Deze conversatie is gesloten. Stel een nieuwe vraag als u hulp nodig hebt.

When you will implement the HTML5 video loop attribute?

Geplaatst

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.

Nuttige antwoorden

A quick Jquery solution

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

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

Naar antwoord 42

Aanvullende systeemdetails

Geïnstalleerde 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.

Toepassing

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

Meer informatie

TimVs.be 0 oplossingen 1 antwoorden
Geplaatst

Helpful Reply

A quick Jquery solution

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

Bewerkt door TimVs.be op

dsotirescu 0 oplossingen 1 antwoorden
Geplaatst

Helpful Reply

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

rthawkcom 0 oplossingen 1 antwoorden
Geplaatst

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

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