PictureInPictureEvent: PictureInPictureEvent() constructor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The PictureInPictureEvent() constructor returns a new PictureInPictureEvent object.
Syntax
js
new PictureInPictureEvent(type, options)
Parameters
Return value
A new PictureInPictureEvent object.
Specifications
| Specification |
|---|
| Picture-in-Picture> # dom-pictureinpictureevent-pictureinpictureevent> |
Browser compatibility
See also
- The
PictureInPictureEventinterface it belongs to.