Home > HTML 5 > Some browsers do not support loop attributes in html 5 video

Problem: Some browsers do not support loop attributes in html 5 video

Solution: Add the following javascript to your page

if (typeof $video.loop !== 'boolean') {
$video.addEventListener('ended', function () {
this.currentTime = 0;
this.play();
}, false);
}



Flag Counter