[whatwg] Proposal: Media element - add attributes for discovery of playback rate support
Brendan Long
self at brendanlong.com
Fri Jul 19 17:35:49 PDT 2013
On Jul 19, 2013 3:14 PM, "Ian Hickson" <ian at hixie.ch> wrote:
> > What if we added a "supportedPlaybackRates" attribute, which holds an
> > array of playback rates supported by the server, plus (optionally) any
> > rates the user agent can support due to the currently buffered data
> > (possibly requiring that the user agent have enough data buffered to
> > play at that speed for some amount of time).
>
> Wouldn't that be 0.0 .. Infinity, basically?
I've been thinking about this more, and it seems like the buffered
attribute[1] is enough for a JavaScript application to determine for itself
if it's safe to play faster. It does seem useful to expose the rates
supported by the server though, so an application can realize that it's
safe to play at those rates, even if there's not much buffered yet.
[1]
http://www.w3.org/TR/2011/WD-html5-20110405/video.html#dom-media-buffered
More information about the whatwg
mailing list