When you will implement the HTML5 video loop attribute?
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.
Vsi odgovori (3)
A quick Jquery solution
- $("#yourID").bind('ended', function(){
- this.play();
- });
Spremenil TimVs.be
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();});