Open
Bug 918332
Opened 11 years ago
Updated 2 years ago
We should hold wake locks more aggressively when HTMLAudioElement are being manipulated by script
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
REOPENED
People
(Reporter: reuben, Unassigned)
Details
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?
Updated•9 years ago
|
Component: Audio/Video → Audio/Video: Playback
Comment 1•6 years ago
|
||
Mass closing do to inactivity. Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
Reporter | ||
Comment 2•5 years ago
|
||
I can still reproduce this on Nightly 72 on macOS.
STR:
- Set sleep preference to a short duration (1 minute)
- Open an album page and play a song that's longer than the time set above. Example link: https://protodome.bandcamp.com/album/chipfunk
- Wait until the song ends
Results: Display goes to sleep, song keeps playing, then when it ends the next song doesn't play.
Expected results: Next song in the album plays after the current one is finished.
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
Reporter | ||
Comment 3•5 years ago
|
||
Soundcloud manages to avoid this problem somehow. I think it's using the WebAudio API instead of an <audio> element.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•