PictureInPictureEvent: PictureInPictureEvent() constructor
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.