[html5] HTMLMediaElement error state

Ian Hickson ian at hixie.ch
Tue Feb 9 18:32:47 PST 2010


On Wed, 13 Jan 2010, Nathan Ziarek wrote:
> Simon wrote:
> >> In my practical, real-world usage, it seems that if no suitable 
> >> <source> is found, the error code and the error event should bubble 
> >> up (I'm probably not using that terminology correctly) to the parent 
> >> <video> element. Without that, I do not see a way to determine if the 
> >> UA has determined there is nothing for it to display.
> >
> > The error event on <source> doesn't bubble. You can set an event 
> > listener on the last <source>. If the last <source> fails, then you 
> > know that all others have also failed, since they are tried in order.
> 
> That is precisely what I was looking for but wasn't seeing.

I've added an example of that to the spec.

HTH.

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



More information about the Help mailing list