Skip to content

Html5 video paused at specific time VideoFrame

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.

demo here

It’s works but i don’t understand why i need to click twice to relanch the video. Any ideas or others solutions ? Thanks


Push the video 1 frame after checking frame:

 if(frame == 23) {

and play the video after setting up event listener: