<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 29, 2009, at 11:19 PM, Ian Hickson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Tue, 14 Apr 2009, Steven Garrity wrote:<br><font class="Apple-style-span" color="#006312"></font><br><blockquote type="cite">It seems the current behaviour in Safari is that if the video format is <br></blockquote><blockquote type="cite">not supported (Ogg Theora, for example), then the <video> player is <br></blockquote><blockquote type="cite">shown (empty) rather than the fall back content.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Is this the intended/spec'ed behaviour when no video format playable by <br></blockquote><blockquote type="cite">the client is provided?<br></blockquote><br>Yes. You can catch the error event (sent to the <source> elements if there <br>are any, otherwise the <video> element) to trigger fallback behaviour. Not <br>sure if Safari implements this event yet though.<br><br></div></blockquote><div>  WebKit nightly builds do fire an 'error' event if no suitable src is found.</div><div><br></div><br><blockquote type="cite"><div><br><blockquote type="cite">We've also attempted to work around this with the canPlayType() <br></blockquote><blockquote type="cite">Javascript function to check for format/codec support and output a Flash <br></blockquote><blockquote type="cite">play if the provided format(s) are not supported. However, Safari <br></blockquote><blockquote type="cite">doesn't seem to have the canPlayType() function at all.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Are we up a creek?<br></blockquote><br>For now, probably. It's early days yet though.<br><br></div></blockquote><div>  Nightly builds also implement the canPlayType() method.</div><div><br></div><div>eric</div><div><br></div><div><br></div></div></body></html>