Closed Bug 1623486 Opened 4 years ago Closed 4 years ago

Always control the media being used in PIP

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(6 files)

I'm considering that, if a user is watching a video via PIP mode, then the tab that video belongs to should always be the main controller.

That means we would always control that media, even if there are other tabs playing media, which start later than when PIP video starts.

Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d8d5c8f4af49
part1 : add methods to set/get the status of being in PIP mode or not for media controller. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/8c9263f17ba9
part2 : update main controller when controller starts being used in Picture-in-Picture mode. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/369779fb2393
part3 : add a method on ContentMediaController to propagate Picture-in-Picture status to the chrome process. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/55e660e894c6
part4 : update Picture-in-Picture mode status from media element. r=chunmin,padenot
https://hg.mozilla.org/integration/autoland/rev/83a8fdfd1567
part5 : add test. r=chunmin
https://hg.mozilla.org/integration/autoland/rev/4b30d2c68966
part6 : modify test. r=chunmin
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: