W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] Some media element details

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 15 Oct 2008 00:47:02 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0810150046270.1237@hixie.dreamhostps.com>
On Mon, 6 Oct 2008, Bonner, Matt wrote:
> 
> the original proposal said:
> 
> >>>>>> "var playing = !video.paused &&
> >>>>>> !video.ended && video.readyState >= HTMLMediaElement.CAN_PLAY"
> 
> you appear to be proposing:
> 
> > var playing = !video.paused && video.readyState >=
> HTMLMediaElement.CAN_PLAY
> 
> which only leaves the "video.ended" state in question.

It's redundant -- the readyState can never be HAVE_FUTURE if there is no 
future (as is the case if the playback has ended).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 14 October 2008 17:47:02 UTC

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