(ANCC,HTMML5,video Component)The end of the video could not be detected.
I need to play the video automatically and jump to the specified frame at the end.
I need help.
this.stop();
var op= this;
stage.on("drawstart", initVideo, this, true);
function initVideo() {
alert("yes")
$("#video1")[0].addEventListener("ended",nextFrame);
$("#video1")[0].play();
}
function nextFrame(evt) {
evt.currentTarget.removeEventListener("ended",nextFrame);
op.gotoAndStop("ed");
}


