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

[whatwg] Error in the play() method's algorithm

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 23 Feb 2009 08:38:56 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0902230838440.6209@hixie.dreamhostps.com>
On Mon, 9 Feb 2009, Robert O'Callahan wrote:
>
> http://www.whatwg.org/specs/web-apps/current-work/#dom-media-play Step 
> 3.3 says "Otherwise, the media element's readyState attribute has the 
> value HAVE_FUTURE_DATA or HAVE_ENOUGH_DATA"...
> 
> But this isn't true. It could be HAVE_NOTHING, in fact it will often be 
> HAVE_NOTHING, because if the network state was NETWORK_EMPTY when play() 
> is called, then the load() method will have returned with the readyState 
> set to HAVE_NOTHING.
> 
> I suspect the description of play() needs to be updated to account for 
> the change to make load() asynchronous.

I made this change as part of the recent load algorithm fixes.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 23 February 2009 00:38:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:47 UTC