[html5] <video> tag fallback

Ian Hickson ian at hixie.ch
Thu Apr 30 09:46:43 PDT 2009


On Thu, 30 Apr 2009, Eric Carlson wrote:
> On Apr 29, 2009, at 11:19 PM, Ian Hickson wrote:
> > On Tue, 14 Apr 2009, Steven Garrity wrote:
> > 
> > > It seems the current behaviour in Safari is that if the video format 
> > > is not supported (Ogg Theora, for example), then the <video> player 
> > > is shown (empty) rather than the fall back content.
> > > 
> > > Is this the intended/spec'ed behaviour when no video format playable 
> > > by the client is provided?
> > 
> > Yes. You can catch the error event (sent to the <source> elements if 
> > there are any, otherwise the <video> element) to trigger fallback 
> > behaviour. Not sure if Safari implements this event yet though.
> 
> WebKit nightly builds do fire an 'error' event if no suitable src is 
> found.

Cool. Has this been updated to the most recent changes to the spec? 
(Firing on the <source> instead of the <video>?)

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