A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/zh-CN/docs/Web/API/Window/documentPictureInPicture below:

Window:documentPictureInPicture 属性 - Web API

Window:documentPictureInPicture 属性

Limited availability

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格。

安全上下文: 此项功能仅在一些支持的浏览器的安全上下文(HTTPS)中可用。

Window 接口的 documentPictureInPicture 只读属性返回对当前文档上下文的 DocumentPictureInPicture 对象的引用。

值

DocumentPictureInPicture 对象实例。

示例
const videoPlayer = document.getElementById("player");

// ...

// 打开画中画窗口。
await window.documentPictureInPicture.requestWindow({
  width: videoPlayer.clientWidth,
  height: videoPlayer.clientHeight,
});

// ...
规范 浏览器兼容性 参见

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4