For a project i need to pause a video at a very specific time. In order to be precise i watch the frame of the video using VideoFrame.
It’s works but i don’t understand why i need to click twice to relanch the video. Any ideas or others solutions ? Thanks
Advertisement
Answer
Push the video 1 frame after checking frame:
if(frame == 23) {
video.stopListen();
video.video.pause();
video.seekForward(1);
}
and play the video after setting up event listener:
video.listen('frame');
video.video.play();