html5 - return frame number video js? -


does know how can return frame video on @ point ?

so example video playing , press js button ive made , returns current frame video on , prints on screen .

there's no way know exact frame of video html5 video element, if know frame rate (e.g. 30 fps) front calculation.

var frame = math.floor(myplayer.currenttime() * framerate); 

Comments