HTMLVideoElement: disablePictureInPicture property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Want more browser support for this feature? Tell us why.
The disablePictureInPicture property of the HTMLVideoElement interface reflects the disablepictureinpicture 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.
When true, the user agent will not suggest picture-in-picture to users, or request it automatically.
Specifications
| Specification |
|---|
| Picture-in-Picture> # dom-htmlvideoelement-disablepictureinpicture> |