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

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

From: Maciej Stachowiak <mjs@apple.com>
Date: Thu, 09 Jul 2009 21:22:16 -0700
Message-ID: <3AA57043-ACAB-4A60-8031-76C9348DD4C3@apple.com>

On Jul 9, 2009, at 9:15 PM, Robert O'Callahan wrote:

> On Fri, Jul 10, 2009 at 3:04 PM, Maciej Stachowiak <mjs at apple.com>  
> wrote:
> Robert's code is a bit buggy; canPlayType returns a string, not a  
> boolean, so it will always appear to say yes.
>
> You're being polite, my code was not "a bit buggy", it was  
> completely broken.
>
> I've actually made this mistake several times while writing tests  
> recently, so I should have known better.
>
> I actually anticipated this problem, and argued strenuously to break  
> canPlayType into two boolean functions, "canPlayType" and  
> "cannotPlayType", but I lost. Hopefully most Web authors are smarter  
> than I am.

I think at one point I suggested that canPlayType should return one of  
boolean false, true or "maybe", so that naiive boolean tests would  
work. Or in any case, make the "no" option something that tests as  
boolean false.

  - Maciej

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090709/196cfec4/attachment.htm>
Received on Thursday, 9 July 2009 21:22:16 UTC

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