Home » Javascript » Javascript/html5 videos with frames or float values

Javascript/html5 videos with frames or float values

Posted by: admin August 19, 2018 Leave a comment

Questions:

If I use video.currentTime, I can only use integer values, how can I go to a more specific section of the video ?? Is there any way to use frames instead of seconds …?

Currently you can do this:

video.currentTime = 10

How can I do this (or the equivalent in frames)

video.currentTime = 10.6

I tried to do it like this: video.currentTime = 10.6 but it goes directly to video.currentTime = 10

video.currentTime is used in javascript with html5 videos.

Answers: