How to pause imported film for a few seconds
how if may can pause imported film in edge animate?
using command:
// insert code run when composition loaded here
settimeout(function() {
//pausing timeline after 2 secs
sym.$("shorter").html("pausing after 2 secs");
sym.stop();
}, 2000);
settimeout(function() {
sym.$("shorter").html("resume playing after 4 secs");
sym.play();
}, 4000);
i can pause objects built in edge command, not imported film... why?
what doing wrong?
if want pause film use:
but there no pause time given paused indefinitely.
// pause video track
sym.$("shorter")[0].pause();
you try running eventlistener:
var movie = sym.$("shorter")[0];
movie.addeventlistener("timeupdate", function() {
var endtime = 2;
if (this.currenttime >= endtime) {
this.pause();
movie.removeeventlistener('timeupdate', timelistener, false);
} else {
this.play();
}
}, false);
More discussions in Edge Animate CC
adobe
Comments
Post a Comment