Closed Bug 961967 (app-audio-channel) Opened 7 years ago Closed 3 years ago
[meta] Audio channel manager to handle audio channel competing
BrowserAudioChannel is the API wrapper of new audio channel API. There would be an AudioChannelManager to gather all events from BrowserAudioChannel to decide competing result and control the instance.
Summary: [Window Management] Implement BrowserAudioChannel in AppWindow sub component → Implement AudioChannelManager to handle audio channel competing
The audio channel management API document: https://gist.github.com/evanxd/41d8e2d91c5201a42bfa (discussed by Gaia and Gecko people) We will implement the Gaia module without the Gecko API support, and the API doc is what we assume to do that.
Pseudo code for audio channel manager: https://gist.github.com/evanxd/c5ee3c5b8a389e01227a
When an app is created(`appcreated` event received) in app window manager, we do `audioChannelManager.register(app.browser.element)` for managing its audio channel there.  https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/app_window_manager.js#L496  https://gist.github.com/evanxd/c5ee3c5b8a389e01227a#file-audio-channel-manager-js-L20
And we do same thing for activity's audio channel management in activity window manager.  https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/activity_window_manager.js#L136
Summary: Implement AudioChannelManager to handle audio channel competing → [meta] Audio channel manager to handle audio channel competing
Hi Baku, You could see the audio channel management spec here.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.