[whatwg] <video> resource selection algorithm and NETWORK_NO_SOURCE

Ian Hickson ian at hixie.ch
Wed Dec 8 17:58:12 PST 2010


On Wed, 1 Sep 2010, Simon Pieters wrote:
> 
> I think it might be good to run the media element load algorithm when 
> setting or changing src on <source> (that has a media element as its 
> parent), but not type and media (what's the use case for type and 
> media?). However it would fire an 'emptied' event for each <source> that 
> changed, which is kind of undesirable. Maybe the media element load 
> algorithm should only be invoked if src is set or changed on a <source> 
> that has no previous sibling <source> elements?

What's the use case? Just set .src before you insert the element.

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