Start the listener when media enters fullscreen or PIP mode
Categories
(Core :: Audio/Video: Playback, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(3 files)
Per bug 1653390 comment12, move PIP and fullscreen related changes to this bug.
This bug would force media element to start the listener when it enters PIP or fullscreen mode.
Assignee | ||
Comment 1•4 years ago
|
||
Add two new test cases for inaudible media being used in fullscreen/PIP mode.
In addition, after applying D84115, we fix the issue of incorrectly controlling media which doesn't be started yet and is not in the fullscreen. So modify the current test case.
Assignee | ||
Comment 2•4 years ago
|
||
When a media enters PIP mode, we should consider it as an important one which user might want to control. Therefore, start the listener in order to notify the media has been started, then we would update the PIP state [1] which would activate the controller.
As the PIP state changes can happen after Stop()
is called, so in this patch, we would remove the start check and reset mControlAgent
in Stop()
in order to update PIP state after the listener stops. Eg. Reset the PIP video's src, then cancel the PIP.
Assignee | ||
Comment 3•4 years ago
|
||
When a media enters fullscreen mode, we should consider it as an important one which user might want to control. Therefore, start the listener in order to notify the media has been started, then we would update the fullscreen state [1] which would activate the controller.
Comment 5•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4e685f4aa90e
https://hg.mozilla.org/mozilla-central/rev/f10c1afc8bf0
https://hg.mozilla.org/mozilla-central/rev/77366f40af71
Description
•