HTML5 Video Seamless Looping

前端 未结 4 1472
轻奢々
轻奢々 2021-02-12 10:31

I know this question has been asked a number of times, and I\'ve looked through every single one of them here on StackOverflow.

I\'m simply trying to loop a 5 second MP4

4条回答
  •  执笔经年
    2021-02-12 11:13

    1. Doozerman and Offbeatmammal are correct: no Javascript is required to loop video in HTML5.

    2. About that pause before each iteration: in some browsers we, too, can observe a pause at the end of the loop in our tests. E.g., in the inline, 22-second demo video at... http://www.externaldesign.com/Marlin-Ouverson.html

    ...under OS X, we see a ~0.5 sec. pause before the loop repeats -- only in Firefox and Safari; Chrome and Opera both play the loop without noticeable pause. But note: for desktop/laptop browsers, the above page provides an added full-screen background video that appears to loop without pause in all four of the above browsers.

提交回复
热议问题