Remove old audio competing mechanism in AudioChannelService
Categories
(Core :: Audio/Video: Playback, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(3 files)
We have implemented new audio focus management in bug1565689 which would allow us to have one tab playing audio at the same time no matter we're using e10s or Fission.
Therefore, we can remove the old pref dom.audiochannel.audioCompeting
and dom.audiochannel.audioCompeting.allAgents
, which are only work on non-e10s mode.
In addition, the audio competing is only used by default on Fennec, but Fennec is now no longer following the latest m-c, it's using ESR68. So even if our new audio focus management is not on by default on Android, it won't affect current behavior on Fennec. We can 100% sure that we won't need those code for old audio competing anymore.
Assignee | ||
Comment 1•5 years ago
|
||
We have implemented new audio focus management in bug1565689 which would allow us to have one tab playing audio at the same time no matter we're using e10s or Fission.
Therefore, we can remove the old pref dom.audiochannel.audioCompeting and dom.audiochannel.audioCompeting.allAgents, which are only work on non-e10s mode.
In addition, the audio competing is only used by default on Fennec, but Fennec is now no longer following the latest m-c, it's using ESR68. So even if our new audio focus management is not on by default on Android, it won't affect current behavior on Fennec. We can 100% sure that we won't need those code for old audio competing anymore.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Sorry, I just notice that we can't remove this right now, because these audio competing code is still running on Fenix. Therefore, instead of removing them immeidiately, I would start to enable new audio focus managment on Fenix Nightly only, and see how it works. If it works well, then we will turn it on Fenix Release, and then replace the old mechanism steps by steps.
Comment 4•5 years ago
|
||
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:alwu, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 5•5 years ago
|
||
I will wait more time to see if enabling new audio competing on Fenix causes any regression or not, in order to decide whether we would like to land these two patches.
Assignee | ||
Comment 6•5 years ago
|
||
We've enabled new the audio competing mechanism on Android Nightly two months ago, and we didn't get any bug report about it, so it's time to enable that for all versions on Android.
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fab28f89bb44
https://hg.mozilla.org/mozilla-central/rev/9f2c46528648
https://hg.mozilla.org/mozilla-central/rev/6309c331099d
Description
•