W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] HTML5 video: frame accuracy / SMPTE

From: Philip Jägenstedt <philipj@opera.com>
Date: Wed, 12 Jan 2011 09:42:16 +0100
Message-ID: <op.vo6s4qd1sr6mfa@kirk>
On Wed, 12 Jan 2011 09:16:59 +0100, Glenn Maynard <glenn at zewt.org> wrote:

> On Wed, Jan 12, 2011 at 2:49 AM, Philip J?genstedt <philipj at opera.com>  
> wrote:
>> (Also, it might be useful to be able to chose whether seeking should be  
>> fast
>> or exact, as frame-accurate seeking is hardly necessary in most normal
>> playback situations.)
>
> In an audio engine I worked on I had a seek hint like that, to
> indicate whether the priority was accuracy or speed.  It matters even
> more with video: when seeking with a seek bar, you may want to snap to
> keyframes, whereas bookmarks, "jump to chapter" features, etc. will
> often want to jump precisely.  A fast seek option would be
> particularly useful for files with infrequent keyframes.
>

For the record, this is the solution I've been imagining:

* add HTMLMediaElement.seek(t, [exact]), where exact defaults to false if  
missing

* make setting HTMLMediaElement.currentTime be a non-exact seek, as that  
seems to be the most common case

-- 
Philip J?genstedt
Core Developer
Opera Software
Received on Wednesday, 12 January 2011 00:42:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:29 UTC