Video HTML autoplay loop

Play infinitely looping video on-load in HTML5

HTMLJavascriptProgramming Scripts

The tag specifies video. Currently, there are 3 supported video formats for the element that are MP4, WebM, and Ogg. Autoplay is used to start the video when the video and page loads.

The loop attribute is a boolean attribute. When present, it specifies that the video will start over again, every time it is finished.

The loop attribute should do it.

Your browser does not support the video element.

If you have a problem with the loop attribute, listen to the videoEnd event. After that call the play[] method when it fires.

Arjun Thakur
Published on 20-Mar-2018 12:30:44
Previous Page Print Page
Next Page
Advertisements

Video liên quan

Chủ Đề