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

[whatwg] Some media element details

From: Bonner, Matt <matt.bonner@hp.com>
Date: Thu, 16 Oct 2008 17:24:42 +0000
Message-ID: <57221E38FB4DD54C946CE654959A554D1AB26EDAF5@GVW0436EXB.americas.hpqcorp.net>
Ian Hickson wrote:

> 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).

Okay, makes sense. 

thanks,
Matt
-- 
Matt Bonner
Hewlett-Packard Company
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4798 bytes
Desc: not available
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20081016/61bcc8e8/attachment.bin>
Received on Thursday, 16 October 2008 10:24:42 UTC

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