This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7878 - An attribute to actually find out if something is playing would be nice (.isplaying). Unless I'm wrong currently you can't actually tell if something is playing without setting var with JS when you start to play and you can't go by the playback position s
Summary: An attribute to actually find out if something is playing would be nice (.isp...
Status: RESOLVED NEEDSINFO
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords: NE
Depends on:
Blocks:
 
Reported: 2009-10-10 13:59 UTC by contributor
Modified: 2010-10-04 14:46 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2009-10-10 13:59:42 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#mediaevents

Comment:
An attribute to actually find out if something is playing would be nice (.isplaying). Unless I'm wrong currently you can't actually tell if something is playing without setting var with JS when you start to play and you can't go by the playback position since it returns the value in seconds leaving a whole second  where it should return 0 and thus you can't tell! An attribute that returns the playback state would also work, with 0 meaning not playing, 1 playing and 2 paused.

Posted from: 86.154.2.114
Comment 1 Simon Pieters 2009-10-11 08:44:48 UTC
(In reply to comment #0)
> Section: http://www.whatwg.org/specs/web-apps/current-work/#mediaevents
> 
> Comment:
> An attribute to actually find out if something is playing would be nice
> (.isplaying).

Isn't .paused what you're looking for?

> Unless I'm wrong currently you can't actually tell if something
> is playing without setting var with JS when you start to play and you can't go
> by the playback position since it returns the value in seconds leaving a whole
> second  where it should return 0 and thus you can't tell!

.currentTime isn't rounded to whole seconds.

> An attribute that
> returns the playback state would also work, with 0 meaning not playing, 1
> playing and 2 paused.

What's the difference between not playing and paused?