requestPictureInPicture method

JSPromise<PictureInPictureWindow> requestPictureInPicture()

The HTMLVideoElement method requestPictureInPicture() issues an asynchronous request to display the video in picture-in-picture mode.

It's not guaranteed that the video will be put into picture-in-picture. If permission to enter that mode is granted, the returned Promise will resolve and the video will receive a HTMLVideoElement.enterpictureinpicture_event event to let it know that it's now in picture-in-picture.

Implementation

external JSPromise<PictureInPictureWindow> requestPictureInPicture();