Add simple infrastructure for opening a Picture in Picture window and cloning a video stream to it

RESOLVED FIXED in Firefox 67

Status

()

P1
normal
RESOLVED FIXED
2 months ago
a month ago

People

(Reporter: mconley, Assigned: mconley)

Tracking

unspecified
mozilla67
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox67 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

2 months ago

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.

Comment 1

2 months ago

Mike, can you prio this? :-)

Flags: needinfo?(mconley)
(Assignee)

Comment 2

2 months ago

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

Comment 5

a month ago
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

a month ago
bugherder
Status: NEW → RESOLVED
Last Resolved: a month 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.