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

[whatwg] Some media element details

From: Bonner, Matt <matt.bonner@hp.com>
Date: Fri, 16 May 2008 18:42:06 +0000
Message-ID: <57221E38FB4DD54C946CE654959A554D0599EECEF8@GVW0436EXB.americas.hpqcorp.net>
On Mon, 14 Jan 2008, Ian Hickson wrote:

> On Mon, 14 Jan 2008, Antti Koivisto wrote:

> > It would be nice to have a read-only attribute (called "playing" for
> > example) that would be true when the element is "actively playing".
> > Knowing if the playback is progressing is necessary for implementing
> > basic playback UIs with JS. It is clumsy and not very obvious that you
> > need to do "var playing = !video.paused && !video.ended &&
> > video.readyState >= HTMLMediaElement.CAN_PLAY" to get this information.

> What's the use case?

Wouldn't you want something like that to know, for example, whether
to display a "play" or a "pause" button?

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/20080516/f2f20b3a/attachment.bin>
Received on Friday, 16 May 2008 11:42:06 UTC

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