Closed Bug 1532773 Opened 5 years ago Closed 5 years ago

Add play, pause, close, and un-pip controls to Picture-in-Picture window player

Categories

(Toolkit :: Video/Audio Controls, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: mconley, Assigned: davejustishh)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached image image.png

The Picture-in-Picture window needs to have controls to do the following:

  1. Close the Picture-in-Picture window
  2. Play / Pause the video
  3. Close the Picture-in-Picture window, and return to the tab that the video originated from.

See screenshot.

Assignee: nobody → djustice

Is there a bug open for adding a progress bar to seek through playback on the PIP window?

Priority: -- → P1
Attached file Bug 1532773 - starter patch (obsolete) —

Hey JSON_Voorhees,

So I did some scouting ahead on this one, and I have a starter patch that adds a simple close control.

Part of the challenge here is the privileged "-moz-window-dragging" CSS rule that's on the browser element. We have to not apply that on the control items in order to have them be clickable.

I also suspect that :hover is going to be screwed up a little bit by -moz-window-dragging, in case we wanted to use hover events to set opacity on the buttons. We can deal with that when we get there though.

You can apply my starter patch with:

moz-phab patch --apply-to here --no-commit

Any questions on this?

Flags: needinfo?(djustice)
Depends on: 1534389
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8fa27903feba
Add player controls for PictureInPicture. r=mconley

(In reply to Andreea Pavel [:apavel] from comment #6)

Backed out for failing browser_showMessage.js

Huh. That was unexpected. Investigating...

Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6d040eae4786
Add player controls for PictureInPicture. r=mconley
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
No longer depends on: 1534389

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0
Build ID: 20190527215312

Verified as fixed on Windows 10 with the latest Nightly.

Status: RESOLVED → VERIFIED
Flags: needinfo?(djustice)
Attachment #9049658 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: