Created
June 26, 2018 03:55
-
-
Save kieranjones/ff090df1ae27f3849836013a93ea098d to your computer and use it in GitHub Desktop.
Loop HTML5 video file in browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var video = document.getElementsByTagName('video')[0]; | |
video.setAttribute('loop', 'true'); | |
video.play(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment