Closed
Bug 1027572
Opened 11 years ago
Closed 11 years ago
playing audio elements should prevent the system from sleeping but allow the display to sleep
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1022669
People
(Reporter: heycam, Unassigned)
Details
I've noticed listening to some long podcasts by opening an audio file in a tab that the computer will still sleep after not touching the keyboard/mouse for however long, before my podcast is finished. I think sleeping should be prevented while the media file is playing.
Comment 1•11 years ago
|
||
We've been adding WakeLockListeners for each platform, and HTMLVideoElement currently requests the 'screen' WakeLock topic when playing. This bug should just be about audio then. It looks like we'd need to support a separate topic to keep the application running (but allow the display to sleep) while playing only audio.
| Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Ralph Giles (:rillian) from comment #1)
> It looks like we'd need to support a separate
> topic to keep the application running (but allow the display to sleep) while
> playing only audio.
That sounds perfect.
| Reporter | ||
Updated•11 years ago
|
Summary: playing audio/video elements should prevent the system from sleeping → playing audio elements should prevent the system from sleeping but allow the display to sleep
Comment 3•11 years ago
|
||
There's work in bug 1022669 to only request the screen lock when we're playing audio.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•