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)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(1 file)

Here's the general idea:

  1. A content process in a browser tab hosts a <video> that the user wants to view in a PiP window
  2. 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)
  3. 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.
  4. 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.

Mike, can you prio this? :-)

Flags: needinfo?(mconley)

Done, thanks!

Assignee: nobody → mconley
Flags: needinfo?(mconley)
Priority: -- → P1
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
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
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: