So far my code looks like this:
var vid = document.getElementById("example"); vid.ontimeupdate = function() {myFunction()}; function myFunction() { //