[B2G] Async method for updating audio channel state in the MediaElement

NEW
Unassigned

Status

Firefox OS
AudioChannel
3 years ago
a year ago

People

(Reporter: alwu, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

This issue is from Bug 1119936. In the following code, we update the audio channel state in both ChangeNetworkState() and ChangeReadyState().
https://dxr.mozilla.org/mozilla-central/source/dom/html/HTMLMediaElement.cpp?from=HTMLMEdiaElement.cpp#697

It's not good to update the audio channel state at the short time even we cache the value in mPlayingThroughTheAudioChannel to prevent duplicate changes.

So we need to make an async function so that changes are aggregated and take effect in the next run.
Assignee: nobody → alwu
Assignee: alwu → nobody
You need to log in before you can comment on or make changes to this bug.