View Single Post
Old 11-30-2012, 10:16 PM   PM User | #2
kethklx
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
kethklx is an unknown quantity at this point
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();
kethklx is offline   Reply With Quote