Don't start a stop timer for the media which is being used in PIP mode
Categories
(Core :: Audio/Video: Playback, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(5 files)
Since we added a timer to stop listening to the media control keys in bug1617033, if media has been paused after a certain period of time, then we would think that media won't need to be controlled any more.
That feature is used to relase platfom level focus for those media are not being used for a while. However, we didn't consider PIP video in this situation, if user change a video to PIP mode, then it's a clear signal that user would still want to control this video.
Therefore, we should not start a timer for the video which is being used in PIP mode.
STR.
- go to https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
- play video in the PIP mode
- wait for the time which is equal to the value of
media.mediacontrol.stopcontrol.timer.ms
Expected.
4. video is still able to be controlled by media control keys
Actual.
4. video is not able to be controlled by media control keys
Assignee | ||
Comment 1•5 years ago
|
||
I will set this bug as P3 temporarily, I would like to spend some time considering all possible use cases of watching video in PIP mode. Eg. should we always control the PIP mode video?
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
The media element being used in the PIP mode would always display on the screen even if the the tab it belongs to is in the background, so users would have high chance to interact with it again. Therefore, we don't want to start a stop-timer to cancel media control for that element.
Assignee | ||
Comment 4•5 years ago
|
||
There are several tests using similar methods of playing/pausing media, and we should make them as util functions to share the same code.
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d192e8ccf609
https://hg.mozilla.org/mozilla-central/rev/bbad080cc1ac
https://hg.mozilla.org/mozilla-central/rev/108486872d5b
https://hg.mozilla.org/mozilla-central/rev/224a2033ef9e
Comment 8•5 years ago
|
||
Comment 10•5 years ago
|
||
bugherder |
Description
•