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
BCD tables only load in the browser
See also
- The
PictureInPictureEvent
interface it belongs to.