Closed
Bug 1520329
Opened 5 years ago
Closed 5 years ago
Add simple infrastructure for opening a Picture in Picture window and cloning a video stream to it
Categories
(Toolkit :: Video/Audio Controls, enhancement, P1)
Toolkit
Video/Audio Controls
Tracking
()
RESOLVED
FIXED
mozilla67
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
Details
Attachments
(1 file)
Here's the general idea:
- A content process in a browser tab hosts a <video> that the user wants to view in a PiP window
- The user expresses that intent somehow (for now, this will be via a video element context menu item that's only displayed if PiP is enabled)
- The parent process is alerted, and it opens up an alwaysOnTop window, which hosts a single <browser> element. That <browser> element must run in the same content process as the originating tab.
- Privileged code in the content process of the originating tab is told about the new window (and underlying blank document) that's been made available to it. It creates a new <video> element for the new document, and sets its source to be a MediaStream from the original video.
That should be enough to start.
Assignee | ||
Comment 2•5 years ago
|
||
Done, thanks!
Assignee: nobody → mconley
Flags: needinfo?(mconley)
Priority: -- → P1
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0d9a174ce8e081cbe635b5fb8bd6e8c2de2c9c8d
Updated•5 years ago
|
Attachment #9037392 -
Attachment description: Bug 1520329 - [WIP] Picture in Picture infra → Bug 1520329 - Add messaging infrastructure for opening videos in a Picture in Picture window. r?jaws
Updated•5 years ago
|
Attachment #9037392 -
Attachment description: Bug 1520329 - Add messaging infrastructure for opening videos in a Picture in Picture window. r?jaws → Bug 1520329 - Add messaging infrastructure for opening videos in a Picture in Picture window. r?felipe
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/519b52f60bb9 Add messaging infrastructure for opening videos in a Picture in Picture window. r=Felipe
Comment 6•5 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox67:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in
before you can comment on or make changes to this bug.
Description
•