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

Specification
Picture-in-Picture
# dom-htmlvideoelement-disablepictureinpicture

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
Chrome – Full support
Chrome 69 (Release date: 2018-09-04)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – Partial support
Firefox 116 – 121 (Release date: 2023-08-01)
footnote Partial support
footnote This property is undefined, but still has an effect if set to a value.
footnote 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.
Firefox – Partial support
Firefox 122 (Release date: 2024-01-23)
footnote Partial support
footnote 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.
Opera – Full support
Opera 56 (Release date: 2018-09-25)
footnote Full support
Safari – Full support
Safari 13.1 (Release date: 2020-03-24)
footnote Full support
Chrome Android – Full support
Chrome Android 105 (Release date: 2022-09-02)
footnote Full support
Firefox for Android – Partial support
Firefox for Android 116 – 121 (Release date: 2023-08-01)
footnote Partial support
footnote This property is undefined, but still has an effect if set to a value.
footnote 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.
Firefox for Android – Partial support
Firefox for Android 122 (Release date: 2024-01-23)
footnote Partial support
footnote 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.
Opera Android – Full support
Opera Android 72 (Release date: 2022-10-21)
footnote Full support
Safari on iOS – Full support
Safari on iOS 13.4 (Release date: 2020-03-24)
footnote Full support
Samsung Internet – Full support
Samsung Internet 20 (Release date: 2023-02-10)
footnote Full support
WebView Android – No support
WebView Android
footnote No support
WebView on iOS – Full support
WebView on iOS 13.4 (Release date: 2020-03-24)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
Has more compatibility info.