Get current frame of video in javascript / jquery
I am playing video using the html video tag. While playing video I want the current frame of the video not "currentTime" using jquery or javascript. I am able to get the current frame by doing the calculation of the fps of video and currentTime, but it is not giving the exact frame number. Any ideas how I can fix this? Please check out below demo. Only one thing is you have to assign a frameRate of video. External Js will manage all thing and you can get Frame number easily. var currentFrame = $('#currentFrame'); var video = VideoFrame({ id : 'video', frameRate: 29.97, callback : function