PictureInPictureWindow

The PictureInPictureWindow interface represents an object able to programmatically obtain the width and height and resize event of the floating video window.

MDN Reference

Properties

Link copied to clipboard
open external val height: Int

The height read-only property of the PictureInPictureWindow interface returns the height of the floating video window in pixels.

Link copied to clipboard
open external val width: Int

The width read-only property of the PictureInPictureWindow interface returns the width of the floating video window in pixels.

Functions

Link copied to clipboard
open external override fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
open external fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>