Permissions-Policy: picture-in-picture
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
HTTP Permissions-Policy
标头 picture-in-picture
指令控制是否允许当前文档以画中画模式播放视频。
具体而言,如果定义的策略阻止使用此特性,则 HTMLVideoElement.requestPictureInPicture()
调用将抛出类型为 SecurityError
的 DOMException
错误。
语法
http
Permissions-Policy: picture-in-picture=<allowlist>;
<allowlist>
-
允许使用该特性的来源列表。有关更多详细信息,参阅
Permissions-Policy
> 语法。
默认策略
picture-in-picture
的默认允许列表是 *
。
规范
Specification |
---|
Picture-in-Picture # permissions-policy |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
picture-in-picture |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.