SoundCloud is not paused/does not pause other audio on Android
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
People
(Reporter: padenot, Unassigned)
Details
This is probably because SoundCloud uses an AudioContext
for output. We should probably pause the HTMLMediaElement
iff it's not playing a MediaStream
, something like this.
Alastor, do you have thoughts about this?
Comment 1•4 years ago
|
||
What do you mean not pausing other audio on Android? You mean other tab playing media? Could you describe your testing steps?
Reporter | ||
Comment 2•4 years ago
|
||
STR:
- Play audio on the device (I'm using the Spotify Android app, but anything works)
- Open a track on SoundCloud in Firefox for Android, tap the central play icon to start playback
Expected:
- Spotify is paused, SoundCloud in Firefox plays
Actual:
- Spotify is not paused, SoundCloud in Firefox plays
Comment 3•4 years ago
|
||
If the page is youtube instead of SoundCloud, is the Spotify app being paused?
I am going to make this P3 and S4. Feel free to bump the priority or severity if needed.
Reporter | ||
Comment 4•4 years ago
|
||
(In reply to C.M.Chang[:chunmin] from comment #3)
If the page is youtube instead of SoundCloud, is the Spotify app being paused?
Yes. Youtube uses an HTMLMediaElement
.
Reporter | ||
Updated•4 years ago
|
Comment 6•4 years ago
|
||
On Fenix, requesting platform audio focus is done by Android component [1] which is not related with gecko's implementation.
Hi, Sebastian,
Is this a known issue for the audio focus component? I wonder whether it would help if Fenix uses the new GV MediaSession API [2] to implement the audio focus?
Thank you.
Updated•3 years ago
|
Reporter | ||
Comment 9•3 years ago
|
||
This works well now, I just tried it.
Description
•