Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

Window: documentPictureInPicture property

Limited availability

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

ThedocumentPictureInPicture read-only property of theWindow interface returns a reference to theDocumentPictureInPicture object for the current document context.

Value

ADocumentPictureInPicture object instance.

Examples

js
const videoPlayer = document.getElementById("player");// …// Open a Picture-in-Picture window.await window.documentPictureInPicture.requestWindow({  width: videoPlayer.clientWidth,  height: videoPlayer.clientHeight,});// …

Specifications

Specification
Document Picture-in-Picture Specification
# dom-window-documentpictureinpicture

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp