|
I think i fixed it. The variable needs to be grabbed again from inside the function, i.e. it's not global. Is there a more elegant way to do this?
myVideo.addEventListener("timeupdate", function() {
var pTime = sym.getVariable("pTime");
if (myVideo.currentTime >= pTime) {
myVideo.pause();
|