The PictureInPictureEvent
interface represents picture-in-picture-related events, including enterpictureinpicture
, leavepictureinpicture
and resize
PictureInPictureEvent
Constructor
-
PictureInPictureEvent()
-
Creates a
PictureInPictureEvent
event with the given parameters.
Properties
This interface also inherits properties from its parent Event
.
-
PictureInPictureEvent.pictureInPictureWindow
-
Returns the
PictureInPictureWindow
the event relates to.
Methods
This interface also inherits properties from its parent Event
.
Specifications
Specification |
---|
Picture-in-Picture # event-types |
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
|
PictureInPictureEvent |
85
69-85
|
85
79-85
|
No
|
No
|
71
56-71
|
13.1
|
No
|
No
|
No
|
No
|
13.4
|
No
|
pictureInPictureWindow |
69
|
79
|
No
|
No
|
56
|
13.1
|
No
|
No
|
No
|
No
|
13.4
|
No
|
See also
- The
Event
base interface
© 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