W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Serving up Theora <video> in the real world

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 10 Jul 2009 16:57:55 +1200
Message-ID: <11e306600907092157g128f1d8enb4017a51098f0533@mail.gmail.com>
On Fri, Jul 10, 2009 at 4:40 PM, Ralph Giles <giles at xiph.org> wrote:

> To recap (off the top of my head): it's hard to say if you can play
> something because that requires either a validator, or actually
> playing it, So in addition to 'yes' and 'no', a 'maybe' was added, to
> say "I've heard of the media type and codecs and profiles, so it's
> worth trying; no promises."


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.

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.

Rob
-- 
"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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090710/01aa8709/attachment.htm>
Received on Thursday, 9 July 2009 21:57:55 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC