PictureInPictureWindow Class

The floating window that shows a video in Picture-in-Picture (https://w3c.github.io/picture-in-picture/#pictureinpicturewindow): its size while it is open, 0×0 once it is closed.

public sealed class PictureInPictureWindow : EventTarget
Inheritance
EventTarget PictureInPictureWindow

Properties

NameDescription
HeightGets the height of the window in CSS pixels, or 0 when it is closed.
OnResizeGets or sets the handler of the resize event, fired when the size of the window changes.
WidthGets the width of the window in CSS pixels, or 0 when it is closed.

Gets the height of the window in CSS pixels, or 0 when it is closed.

public int Height { get; }

Gets or sets the handler of the resize event, fired when the size of the window changes.

public Action<Event>? OnResize { get; set; }

Gets the width of the window in CSS pixels, or 0 when it is closed.

public int Width { get; }