Closed Bug 961967 (app-audio-channel) Opened 6 years ago Closed 2 years ago

[meta] Audio channel manager to handle audio channel competing

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set

Tracking

(feature-b2g:3.0?, tracking-b2g:+)

RESOLVED WONTFIX
feature-b2g 3.0?
tracking-b2g +

People

(Reporter: alive, Unassigned)

References

Details

Attachments

(1 file)

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.
Alias: app-audio-channel
Depends on: NewAudioChannel
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.
Depends on: 1096163
Pseudo code for audio channel manager: https://gist.github.com/evanxd/c5ee3c5b8a389e01227a
When an app is created(`appcreated` event received) in app window manager[1], we do `audioChannelManager.register(app.browser.element)`[2] for managing its audio channel there[1].

[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/app_window_manager.js#L496
[2] 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[2].

[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/activity_window_manager.js#L136
Depends on: 1100815
Summary: Implement AudioChannelManager to handle audio channel competing → [meta] Audio channel manager to handle audio channel competing
Depends on: 1100822
Depends on: 1100864
Depends on: 1003025
Depends on: 1111526
Attached file Sound spec v1.5
Blocks: 1068219
feature-b2g: --- → 3.0?
tracking-b2g: --- → +
Hi Baku,
You could see the audio channel management spec here.
See Also: → 1111951
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.