question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to disable picture-in-picture (PIP)

See original GitHub issue

Expected 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
luwescommented, Jan 13, 2021

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.

2reactions
Nautmancommented, Jan 6, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found