[whatwg] Frame advance feature for a paused VIDEO

Ian Hickson ian at hixie.ch
Wed Jun 10 14:36:55 PDT 2009


On Thu, 21 May 2009, Biju wrote:
>
> I dont see a way to do frame advance feature for a paused VIDEO.
> 
> Is there a way to achieve that ?
> As well as frame backward also.

There is no way to do this today, but I imagine we'll add an API for this 
in due course. It's the first thing on the list of features for the next 
version, in fact.


On Mon, 25 May 2009, Philip Jägenstedt wrote:
> 
> If you pause the video and set currentPosition it should advance to that 
> frame. As long as you know the frame rate you're good to go. All in 
> theory of course, implementations may not be all the way there yet.

On Tue, 26 May 2009, Robert O'Callahan wrote:
>
> I don't think there is a standard way to expose the frame rate. We might 
> even want something more general than the frame rate, since conceivably 
> you could have a video format where the interval between frames is 
> variable.

On Tue, 26 May 2009, Robert O'Callahan wrote:
> 
> It's more than conceivable, actually --- chained Oggs can have the frame 
> rate varying between segments. So if you're at the last frame of one 
> segment the time till the next frame can be different from the time 
> since the previous frame.

On Tue, 26 May 2009, Philip Jägenstedt wrote:
> 
> Indeed, I don't suggest adding an API for exposing the frame rate, I'm 
> just saying that if you know the frame rate by some external means then 
> you can just set currentTime.

On Tue, 26 May 2009, Robert O'Callahan wrote:
> 
> OK, sure. Since there are lots of situations where you don't know the 
> frame rate via external means, it seems new API is needed here.

On Mon, 25 May 2009, Jonas Sicking wrote:
> 
> There doesn't seem to be a way to do so. Definitely something I think we 
> should consider for the next version of the API.

I agree with the above comments.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list