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:
JavaScript
x
6
1
if(frame == 23) {
2
video.stopListen();
3
video.video.pause();
4
video.seekForward(1);
5
}
6
and play the video after setting up event listener:
JavaScript
1
3
1
video.listen('frame');
2
video.video.play();
3