Code for stop button that will stop the video and go to the beginning of the video in Animate CC
I am looking for how to code (code snippet) a stop button for a video inside of HTML5 Canvas. I want the button to stop the video and go to the beginning of the video but not play the video. Here is my code (actions) so far: Thanks in advance.
this.playBtn.dyn.text = "play";
this.pauseBtn.dyn.text = "pause";
this.stopBtn.dyn.text = "stop";
this.playBtn.addEventListener("click", fl_MouseClickHandler_4.bind(this));
function fl_MouseClickHandler_4()
{
$("#myVideo")[0].play();
}
this.pauseBtn.addEventListener("click", fl_MouseClickHandler_5.bind(this));
function fl_MouseClickHandler_5()
{
$("#myVideo")[0].pause();
}
