The PictureInPictureEvent() constructor returns a new PictureInPictureEvent object.
new PictureInPictureEvent(type, options)typeA string representing the name of the event. It is case-sensitive and browsers set it to enterpictureinpicture, leavepictureinpicture, or resize.
optionsAn object that, in addition of the properties defined in Event(), can have the following properties:
pictureInPictureWindowA new PictureInPictureEvent object.
PictureInPictureEvent interface it belongs to.