Skip to content

Instantly share code, notes, and snippets.

@wickywills
Created March 4, 2020 08:03
Show Gist options
  • Save wickywills/9352073be9b5725873d3d6b2c71cd40f to your computer and use it in GitHub Desktop.
Save wickywills/9352073be9b5725873d3d6b2c71cd40f to your computer and use it in GitHub Desktop.
Ensure src attribute of video is empty. Then add something like this:
```
<script>
window.onload = function(){
document.getElementById("vidSrc").src = "mysrc.mp4";
document.getElementById("vid").load();
document.getElementById("vid").play();
};
</script>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment