![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
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.
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.
Alle antwurden (3)
A quick Jquery solution
- $("#yourID").bind('ended', function(){
- this.play();
- });
Bewurke troch TimVs.be op
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();});