Does anyone have an Idea about how to create a video scrub controller in a banner ad (doubleClick).
Moving a toggle would make video scub forward or backwards.
Cheers I anyone can help.
Clinton
Does anyone have an Idea about how to create a video scrub controller in a banner ad (doubleClick).
Moving a toggle would make video scub forward or backwards.
Cheers I anyone can help.
Clinton
There are many different ways to do this (and might even have some already on the forums). Here’s the basic steps I’d use:
block 1:
var percentComplete = (hypeDocument.currentTimeInTimelineNamed("Scrubber") / hypeDocument.durationForTimelineNamed("Scrubber"));
var videoElement = hypeDocument.getElementById("myvideo");
videoElement.currentTime = (videoElement.duration * percentComplete);
block 2:
var videoElement = hypeDocument.getElementById("myvideo");
videoElement.ontimeupdate = function () {
var percentComplete = videoElement.currentTime / videoElement.duration;
hypeDocument.goToTimeInTimelineNamed((hypeDocument.durationForTimelineNamed("Scrubber") * percentComplete), "Scrubber");
}
Here’s a sample document:
VideoScrubber.hype.zip
I don’t know if others have had this issue:
When I try to open the ZIP file above (“VideoScrubber.hype.zip”) I get an error… “Document Version Incompatibility” letting me know this file was created on a newer version of Hype. The “Check for Updates” button indicates I’m up to date. I’ve downloaded it twice just incase there was a transition error - same result.
I’m running 3.6.3 (584).
FYI
Thanks Jonathan for the detail provided.
VideoScubber.hype.zip not opening for me too.
Thanks - Working perfectly.
@jonathan
Yep I get that on 584 . Seems the doc is listing as 599 in the plist?
But I may be looking at the wrong number since on my 584 v the plists show 574
Update.
I changed the 599 to 574 and the doc opens. ( Not recommended. This is just a confirmation of the problem )
Whaaat…
Didn’t you get the email … I’m using 4.5 already.
Whoops, my bad. I think I made the doc in v3.6.3 and then accidentally opened it in Hype v12.3 before sending. Glad you got it .
“Great Scott!”