We should hold wake locks more aggressively when HTMLAudioElement are being manipulated by script

NEW
Unassigned

Status

()

Core
Audio/Video: Playback
4 years ago
2 years ago

People

(Reporter: reuben, Unassigned)

Tracking

Trunk
All
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
Bandcamp has enabled their HTML5 player by default. They use a single <audio> element and swap the source using JS to play the next song. The problem is, if you leave an album page playing for long enough that OS X would go to sleep, it'll sleep as soon as a song is over and the source is being swapped with the next one in JS.

I don't know exactly how the keep-the-system-on machinery works, but maybe we should be more aggressive when audio elements are being manipulated by script to prevent this situation from happening.

Thoughts?
Component: Audio/Video → Audio/Video: Playback
You need to log in before you can comment on or make changes to this bug.