Option to disable picture-in-picture (PIP)
See original GitHub issueExpected Behavior
Player API should have a boolean option such as disablePictureInPicture: true
or pip: false
to disable the browser’s picture-in-picture feature via disablePictureInPicture
.
Actual Behavior
The player API does not seem to support disabling PIP.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:13 (2 by maintainers)
Top Results From Across the Web
How to Turn Off YouTube's New Picture-in-Picture Feature
You can disable the Picture in Picture feature just for YouTube: ... Tap your profile picture in the upper-right corner. ... Tap Settings...
Read more >How to Turn Off Automatic Picture-in-Picture on iPhone
In the “Picture in Picture” settings, toggle-Off the “Start PiP Automatically” option to disable it. Toggle-Off "Start PiP Automatically." Now, ...
Read more >How to stop automatic Picture-in-Picture for videos on iPhone
Open iPhone or iPad Settings app. Select General. Tap Picture in Picture. Turn off Start PiP Automatically.
Read more >A Guide to Enabling or Disabling Picture-in-Picture Mode on ...
To do that, go to Settings > General > Picture-in-Picture and turn off the switch next to Start PiP Automatically. Disable Enable Picture...
Read more >How do I disable the Picture-in-Picture mode for specific apps ...
To disable the Picture-in-Picture mode · Find and tap Settings > Apps & notifications > Advanced > Special app access > Picture-in-picture. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PiP is now disabled by default on all browsers. It can be enabled on Chrome and Safari by adding the
pip
option and setting it to true. Closing this as fixed.Yes, the use case is that I want to fully disable users from being able to use PiP in our iframe.
For Safari, this means that the button should be hidden.
For Chrome, I think this means that the
disablePictureInPicture
attribute should be added to the element, either with HTML or JavaScript (videoElement.disablePictureInPicture = true
).Unfortunately, Firefox doesn’t currently support the
disablePictureInPicture
attribute. This is an open issue on Bugzilla.Thank you so much for helping us!