Skip to content

Instantly share code, notes, and snippets.

@ckahle33
Last active August 29, 2015 14:26
Show Gist options
  • Save ckahle33/33c23c0ee1a287a0c48b to your computer and use it in GitHub Desktop.
Save ckahle33/33c23c0ee1a287a0c48b to your computer and use it in GitHub Desktop.
force play of <video>
var video = document.getElementByTagName("video")[0];
video.addEventListener("click", function(event){
this.play()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment