Closed Bug 1610522 Opened 5 years ago Closed 3 years ago

Ability for developers to hide/disable picture-in-picture button

Categories

(Toolkit :: Picture-in-Picture, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1611831

People

(Reporter: naktinis, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached image ff_pip.png (deleted) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Create a video element.

Actual results:

Hovering over the video always displays a blue picture-in-picture button with no way to hide it or even style it.

Expected results:

Developers should have a way of not showing this blue button when it's not needed.

Otherwise Firefox imposes its own style and UI onto users and developers. The user can always right-click the video and choose picture-in-picture there. This bright blob really distracts the user from the main functionality.

I can propose some ideas, although don't have much preference:

  • get rid of the PiP hover altogether and just leave the functionality in the context menu
  • let users style the PiP hover in CSS according to their app/site
  • let users disable PiP altogether with an attribute such as disablePictureInPicture (which Chrome does); although in this case you also need to disable it in the context menu as well
Summary: hide picture in picture button from video → Ability to hide picture-in-picture button

hello, users can set if this button should be shown or not through the "Enable picture-in-picture video controls" preference in about:preferences#general.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Video/Audio Controls
Product: Firefox → Toolkit

Hi Philipp, I'm aware that users can do this. I'm talking about developers who would like to have control over the visuals of their product. I'll update the title to reflect this.

Summary: Ability to hide picture-in-picture button → Ability for developers to hide picture-in-picture button

Here's one more suggestion that would be satisfactory: don't enable it by default, let it be opt-in. Then the default experience of using a web product would not be interrupted, but user could still tweak it to their liking.

This sounds like a request for the disablePictureInPicture attribute of the Picture-in-Picture API, so I'll mark this as blocker for bug 1463402.

Sebastian

Blocks: 1463402

Seems like this is more related to the picture-in-picture mode that Firefox offers for every video without even implementing the PiP DOM API.

Blocks: videopip
Summary: Ability for developers to hide picture-in-picture button → Ability for developers to hide/disable picture-in-picture button

Picture-in-picture is no doubt a cool feature but it is exactly what I don't want. I write educational solftware and need to control the position of the video window. Can you please provide developers with tha abilty to turn this feature off when it is not required?

Component: Video/Audio Controls → Picture-in-Picture
Version: 72 Branch → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: