tags:

views:

11

answers:

0

Hi, I'm trying to pull together the javascript to seek through video by individual frames using HTML5. I had a few questions:

1) When you change the video.currentTime property, does this automatically re-render the video at the new time position. I've got the following, and regardless of whether the video is playing or paused, this doesn't seem to work.

input type="button" value="Fwd" onclick="video.currrentTime+=1"

2) Is there a way to figure out the video framerate? Ideally, I'd want to update the currentTime by 1/framerate. Looking at the video properties, it only gives you width and height. There didn't seem to be a way to tell whether the video is 25fps, 30fps, 60fps etc.

Thx, R