[whatwg] Proposal: Media element - add attributes for discovery of playback rate support

Ian Hickson ian at hixie.ch
Tue Sep 10 14:45:15 PDT 2013


On Fri, 19 Jul 2013, Brendan Long wrote:
> 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 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.

How do browsers determine what speeds the server supports? IS that 
information in the protocol? I'd need to read more about this to figure 
out how to expose it.

-- 
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