Animate HTML Canvas video component - getting video's current time to pause video
Hi everyone, I'm new to the forum and am seeking some help to a problem that I've been wracking my brain over for the last several days.
I've scoured forum and baffled that no one else has run into this.
So I've got a canvas document using the video component and got the play and pause buttons functioning using video loaded and following JosephLabrecque excellent tutorial and several of ClayUUID's posts on video component related topics.
In my project, the video (hosted on vimeo pro, so I have direct access to file url as if it was on a local server) loads and is supposed to play for 4 seconds and hold awaiting user input from a button to continue playing.
- What I'm having a tough time with is figuring out how to get the video's currentTime or get the eventHandler (timeupdate) inside animate's using javascript to pause the video after 4 or however many seconds and then resume from there once a user pushes the right button?
- Also, how to I interact with animate's html5 canvas instances (like programatically updating dynamic text) from outside animate, i.e., from the page's javascript. I suppose this question is how to scope into animate's instances from the page's javascript? And how to interact with page elements from within animate's canvas javascript?
Thank you!
