[whatwg] HTML5 video: frame accuracy / SMPTE

Regarding whether to use "fast" or "accurate" seeks by default, it
seems like a balance between the frequency of use cases for each, the
likelihood of either default being wrong, principle of least surprise,
and consistency with other APIs.  Looking at various seek use cases:

Seek bars should use "fast", particularly for longer videos and videos
with keyframes spaced far apart.  Videos encoded to allow quick
seeking by using frequent keyframes, on the other hand, might use
"accurate" even for seek bars.

Chapter seeking should use "accurate".  If a chapter is at 1h45m12.2s,
a fast seek would end up seeking into the previous scene, or into the
middle of a fade-out.

User-specified seeks, like YouTube's "tm" URL parameter, should be
"accurate", for the same reason as chapters.

A "seek ahead by N seconds" button should use "accurate".

Even in the primary use case of a seek bar, it's not always wanted.

The consequences of using "fast" as the default, when people forget to
explicitly specify "accurate", seem worse than the other way around.
I recommend "accurate" as the default.

-- 
Glenn Maynard

Received on Friday, 21 January 2011 17:58:20 UTC