Open Bug 1828760 Opened 2 years ago Updated 2 years ago

Joining a WebRTC call on Android will not mute other media sources

Categories

(Core :: WebRTC: Audio/Video, defect, P3)

Unspecified
All
defect

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.

Alastor, the cause is likely to be the fact that AudioContext don't take audio focus, right?

Flags: needinfo?(alwu)

If this is easy to fix, a nice papercuts fix. marking s2 to keep track of it.

Severity: -- → S2

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.

Flags: needinfo?(alwu)
OS: Android → All
Priority: -- → P3
Severity: S2 → S4
You need to log in before you can comment on or make changes to this bug.