On Fri, Jul 10, 2009 at 4:40 PM, Ralph Giles <span dir="ltr"><<a href="mailto:giles@xiph.org">giles@xiph.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
To recap (off the top of my head): it's hard to say if you can play<br>
something because that requires either a validator, or actually<br>
playing it, So in addition to 'yes' and 'no', a 'maybe' was added, to<br>
say "I've heard of the media type and codecs and profiles, so it's<br>
worth trying; no promises."</blockquote><div><br>The way we've implemented in Firefox, we'll return "yes" if you specify a codecs parameter and we support every codec in your list. So v.canPlayType("video/ogg; codecs=vorbis,theora") returns "probably" in Firefox 3.5. I think this is reasonable because I believe that, modulo bugs in our implementation, we support the full Theora and Vorbis specs. On the other hand, we will return "maybe" for v.canPlayType("video/ogg"). I think this distinction will be useful.<br>
<br>I know it's trickier for H.264 where there are many profiles, but IIRC the codecs parameter is flexible enough to encode profile levels as well.<br><br></div>Rob<br></div>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>