[whatwg] Adding and removing media source elements

On Tue, 3 Feb 2009, Chris Pearce wrote:
> 
> (1) Should removing a media element's child source element while the 
> networkState is NETWORK_EMPTY cause the load() algorithm to be invoked? 
> This would match the behviour of removing the media element's src 
> attribute when networkState is NETWORK_EMPTY.

Removing a <source> element from a document can never, as far as I can 
tell, cause a resource that was previously not being considered to be 
considered. (Removing a src="" attribute can expose <source> elements that 
were previously being ignored.)


> (2) Why don't we invoke load() whenever a media element's src attribute 
> or <source> children are changed, regardless of networkState? That way 
> changes to the media's src/source other than the first change would have 
> the same effect as first change, i.e. they'd have an immediate effect, 
> causing load() to be invoked.

Doing this would cause the first file to be downloaded multiple times in a 
row, leading to excessive network usage.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 2 February 2009 20:44:07 UTC