picture-in-picture
The picture-in-picture policy controls whether the current document is allowed
to use Picture
In Picture. If disallowed in a document, then calls to requestPictureInPicture()
MUST throw a SecurityError
and pictureInPictureEnabled
MUST return false
.
How to apply this policy
Send the following HTTP header to control the picture-in-picture
policy, and
disallow it on all origins:
Feature-Policy: picture-in-picture 'none'
Does it work?
Currently Firefox, and Chromium based browsers, such as Google Chrome, Samsung Internet,
and Opera, are the only user-agents to support Feature Policy. The minimum version that
correctly recognises the picture-in-picture
policy is:
Not supported
74+
Not supported
Not supported