[whatwg] HTMLMediaElement load and autoplay

Ian Hickson ian at hixie.ch
Tue Jul 8 16:03:25 PDT 2008


On Thu, 3 Jul 2008, Philip Jägenstedt wrote:
> 
> OK, so in that case I suppose the requirement is to call load() sometime 
> during the parsing phase. This probably implies that the loadstart event 
> must be fired on all media elements before the load event is fired on 
> the owner document.

Yes, typically.


> As a side note, we certainly can't want to wait for all media elements 
> to fire the load before firing it on the parent document event as that 
> may take several minutes or never happen at all -- breaking half of the 
> web that relies on this behavior.

Right; the spec says only things that "delay the load event" delay the 
load event, and <video> isn't one of them.


> > The script can tell if the download is being blocked by checking 
> > bufferingThrottled and bufferingRate. I'm not sure we want a way to 
> > override the blocking since it is supposed to represent user intent.
> 
> Indeed, but it wouldn't be a spec violation to value automatic loads and 
> script-invoked loads slightly different internally. That said, it's not 
> a priority and I will reraise the question if it appears to be a real 
> need in the future.

Ok.

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