W3cubDocs

/Web APIs

HTMLVideoElement: disablePictureInPicture property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The HTMLVideoElement disablePictureInPicture property reflects the HTML attribute indicating whether the picture-in-picture feature is disabled for the current element.

This value only represents a request from the website to the user agent. User configuration may change the eventual behavior—for example, Firefox users can change the media.videocontrols.picture-in-picture.respect-disablePictureInPicture setting to ignore the request to disable PiP.

Value

A boolean value that is true if the picture-in-picture feature is disabled for this element. This means that the user agent should not suggest that feature to users, or request it automatically.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
disablePictureInPicture 69 79
122When this property is set to true, the overlay button to disable picture-in-picture (PiP) is hidden, but the user can still enable PiP.
116–122["This property is undefined, but still has an effect if set to a value.", "When this property is set to true, the overlay button to disable picture-in-picture (PiP) is hidden, but the user can still enable PiP."]
56 13.1 105
122When this property is set to true, the overlay button to disable picture-in-picture (PiP) is hidden, but the user can still enable PiP.
116–122["This property is undefined, but still has an effect if set to a value.", "When this property is set to true, the overlay button to disable picture-in-picture (PiP) is hidden, but the user can still enable PiP."]
72 13.4 20.0 No 13.4

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/disablePictureInPicture