Closed Bug 1649636 Opened 5 years ago Closed 5 years ago

Allow `MediaControlKeySource` to know the browsing context ID of the tab that is being controlled

Categories

(Core :: Audio/Video: Playback, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(2 files)

This is a request from GeckoView team, because they want to know which tab is being controlled and then they can call the corresponding callback to notify the embedded application.

On GeckoView, when we update the property on the key source, such as the playback state, metadata. We want to know which tab that those properties change belong to.

Therefore, we create a method SetControlledTabBrowsingContextId() to tell the key source which tab is being controlled and all properties update should belong to that tab.

We forgot to implement those two methods on MediaControlKeyManager, which would result in not able to propagate those update to the real key source that handle the platform level APIs, such as MPRIS, SMTC.

Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bfaf4034a513 part1 : update controlled tab Id to the key source. r=chunmin https://hg.mozilla.org/integration/autoland/rev/85759048de42 part2 : implement `SetEnableFullScreen()` and `SetEnablePictureInPictureMode()` on `MediaControlKeyManager`. r=chunmin
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: