Closed Bug 1654657 Opened 4 years ago Closed 4 years ago

Refine the logic of choosing main controller

Categories

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

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(8 files)

In 1642715, we add a support to know if a controller is being used in fullscreen, the controller is being used in fullscreeen should be equal to the one being used in PIP mode, which might be important to user.

Therefore, we should make it steal the controllability from current main controller.


In addition, GeckoView also wants having an ablility to set the main controller directly.

However, there are some situations [1] which is still unclear to me, and we might not want to make controller become the main controller under those situations. eg. media failed to load, but enters fullscreen

[1] https://phabricator.services.mozilla.com/D84189#inline-482753

Blocks: 1656642
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1bcee92cca2f
part1 : update fullscreen change in media element. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/a38035f87274
part2 : treat media controller being used in fullscreen as same as the one being used in PIP mode. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/d250ac96b75f
part3 : remove unused function 'IsInPictureInPictureMode()'. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/dfc019b0d561
part4 : test 'NotifyMediaFullScreenState()' in gTest. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/181b121b990a
part5 : request to become a main controller when controller enters fullscreen. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/eb6f3ddbda21
part6 : refine the logic of requesting main controller. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/bb318cb201e2
part7 : add test cases for choosing main controller. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/27e33cb31984
part8 : add test cases to ensure non-eligible media can be controlled when it enters fullscreen or PIP mode. r=chunmin
Pushed by malexandru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3728c4bb8101
Fix bustages caused by the backout of Bug 1200896 and conflicting changes to NotifyFullScreenChangedForMediaElement. a=bustage-fix
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: