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)
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
Assignee | ||
Comment 1•9 years ago
|
||
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
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
If CI[1] is good, then let's start to review the patch. :)
[1]: https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=bb7676e16e8bb1bfc94c2ed90b943f59c54b9473
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8608550 [details] [review]
[gaia] evanxd:bug-1167077 > mozilla-b2g:master
Hi Alive and Dominic,
Could you review the patch?
Thanks.
Attachment #8608550 -
Flags: review?(alive)
Assignee | ||
Updated•9 years ago
|
Attachment #8608550 -
Flags: review?(dkuo)
Comment 5•9 years ago
|
||
Comment on attachment 8608550 [details] [review]
[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)
Comment 6•9 years ago
|
||
Comment on attachment 8608550 [details] [review]
[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)
Assignee | ||
Comment 7•9 years ago
|
||
Patch[1] is updated. Let's add tests.
[1]: https://github.com/evanxd/gaia/commit/194c7873c37af944992c685038a16f46c3f13919
Assignee | ||
Comment 8•9 years ago
|
||
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
Assignee | ||
Comment 9•9 years ago
|
||
Assignee | ||
Comment 10•9 years ago
|
||
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8608550 [details] [review]
[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 12•9 years ago
|
||
Comment on attachment 8608550 [details] [review]
[gaia] evanxd:bug-1167077 > mozilla-b2g:master
r+ with nits
Attachment #8608550 -
Flags: review?(alegnadise+moz) → review+
Assignee | ||
Comment 13•9 years ago
|
||
Alvie, thanks for the review.
Assignee | ||
Comment 14•9 years ago
|
||
Update the patch[1] for the nits and wait for the CI. If CI is good, let's land the code. :D
[1]: https://github.com/evanxd/gaia/commit/462e89a6505e4bb32fca52111946cee709c45424
[2]: https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=462e89a6505e4bb32fca52111946cee709c45424
Assignee | ||
Comment 15•9 years ago
|
||
Added new tests[1] and wait the CI[2].
[1]: https://github.com/evanxd/gaia/commit/bd7463d389a78c6fb36ca358a428f0db66f86d01
[2]: https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=bd7463d389a78c6fb36ca358a428f0db66f86d01
Assignee | ||
Comment 16•9 years ago
|
||
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.
Description
•