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

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

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 10 Jul 2009 04:39:02 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0907100438430.1976@hixie.dreamhostps.com>
On Thu, 9 Jul 2009, Maciej Stachowiak wrote:
> On Jul 9, 2009, at 9:15 PM, Robert O'Callahan wrote:
> > 
> > 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.

I've changed the API to return "" instead of "no".

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 9 July 2009 21:39:02 UTC

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