HTML5 Video Seamless Looping

前端 未结 4 1483
轻奢々
轻奢々 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:23

    You don't need any extra scripts for that kind of stuff.

    The "video" tag has built in loop attribute, use this and your video will loop.

    
    

    You can also add preload attribute if you wanted to. If you want, you can find more information about the video tag here: HTML video Tag

    Edit: Oops. Didn't notice Offbeatmammals comment under your question. :)

提交回复
热议问题