Closed Bug 1167077 Opened 9 years ago Closed 9 years ago

Disable all System app's audio channels when AudioChannelService is initializing.

Categories

(Firefox OS Graveyard :: Gaia::System::Audio Mgmt, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evanxd, Assigned: evanxd)

References

Details

Attachments

(1 file)

In shell.js[1], the System app's audio channels is allowed to play by default for playing any audio before the AudioChannelService[2] is loaded. But for managing the audio channels correctly, we need to disable them after AudioChannelService is loaded. [1]: Bug 1165134 - Add new MozChromeEvent/MozContentEvent to allow System app to control its own audio channels [2]: https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/audio_channel_service.js
Update: Let's disable the audio channels in SystemWindow[1]. It more makes sense. [1]: https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/system_window.js
Blocks: 1165134
Comment on attachment 8608550 [details] [gaia] evanxd:bug-1167077 > mozilla-b2g:master Hi Alive and Dominic, Could you review the patch? Thanks.
Attachment #8608550 - Flags: review?(alive)
Attachment #8608550 - Flags: review?(dkuo)
Comment on attachment 8608550 [details] [gaia] evanxd:bug-1167077 > mozilla-b2g:master Telling gecko to mute the audio when SystemWindow being started is not a correct timing to me. We should wait AudioChannelManager to start. Otherwise nobody could manage the audioChannels.
Attachment #8608550 - Flags: review?(alive)
Blocks: 1113086
Comment on attachment 8608550 [details] [gaia] evanxd:bug-1167077 > mozilla-b2g:master Same reason as Alive's comment so cancelling the review. Evan, let's have a discussion again about the system's audio channel issue before the system app actually started after you got back.
Attachment #8608550 - Flags: review?(dkuo)
Tests are added, and wait for the CI result[1]. If it is good, let's start to review the patch again. [1]: https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=201476131284a8a44fce4eafdddf13c029116a88
Comment on attachment 8608550 [details] [gaia] evanxd:bug-1167077 > mozilla-b2g:master Hi Alive, Patch is updated. Could you help to review it again? Thanks.
Attachment #8608550 - Flags: review?(alegnadise+moz)
Comment on attachment 8608550 [details] [gaia] evanxd:bug-1167077 > mozilla-b2g:master r+ with nits
Attachment #8608550 - Flags: review?(alegnadise+moz) → review+
Alvie, thanks for the review.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: