The PictureInPictureEvent()
constructor returns a newly created PictureInPictureEvent
object with an optional EventTarget
. When the event has both a source and a destination, the relatedTarget
value must be set to the other target.
PictureInPictureEvent()
Syntax
new PictureInPictureEvent(typeArg) new PictureInPictureEvent(typeArg, pictureInPictureInit);
Properties
The PictureInPictureEvent()
constructor also inherits arguments from Event()
.
-
typeArg
-
Is a
DOMString
representing the name of the event. -
focusEventInit
Optional -
Is a
PictureInPictureEventInit
dictionary, having the following fields:-
"relatedTarget"
, optional and defaulting tonull
, is anEventTarget
.
-
Specifications
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
PictureInPictureEvent |
85
69-85
|
85
79-85
|
No
|
No
|
71
56-71
|
13.1
|
No
|
No
|
No
|
No
|
13.4
|
No
|
See also
- The
PictureInPictureEvent
interface it belongs to.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureEvent/PictureInPictureEvent