Joining a WebRTC call on Android will not mute other media sources
Categories
(Core :: WebRTC: Audio/Video, defect, P3)
Tracking
()
People
(Reporter: dbaker, Unassigned)
References
(Blocks 1 open bug)
Details
When using Android to join a WebRTC call if you have media playing from another app the media will continue to play. I have tested using YouTube Music and Hulu apps joining a whereby room when I noticed this.
STR:
- Have YT Music playing or Hulu (other apps may behave the same).
- Join a whereby call without stopping media from the other app. (I did not test other webrtc services)
Expected Result: The media from other apps will stop playing.
Actual Result: The media continues to play.
Note: Chrome seems to mute the media from other apps when joining a call as expected.
Comment 1•2 years ago
|
||
Alastor, the cause is likely to be the fact that AudioContext don't take audio focus, right?
![]() |
||
Comment 2•2 years ago
|
||
If this is easy to fix, a nice papercuts fix. marking s2 to keep track of it.
Comment 3•2 years ago
|
||
This can be reproduced on all platforms if you turn the pref media.audioFocus.management
to true
. Our current audio focus management doesn't do any special handling for the WebRTC, we only manage audio focus between different audible media. In addition, audio focus management is based on the implementation of the media control.
For now, the WebRTC call isn't participated the media control system, because they are real-time and shouldn't be paused. If we want to solve this issue, we need to assign each type of media different priorities. That will require the implementation of Audio Session API.
![]() |
||
Updated•2 years ago
|
Description
•