PictureInPictureWindowRequest Class

A Picture-in-Picture window to open, given to UserAgentUIBackend.OpenPictureInPictureWindowAsync (the window of a video) or UserAgentUIBackend.OpenDocumentPictureInPictureWindow (the window of a document).

public sealed class PictureInPictureWindowRequest : UserAgentPrompt
Inheritance
UserAgentPrompt PictureInPictureWindowRequest

Properties

NameDescription
DefaultSizeGets the size the user agent gives the window by default: for a video, its natural size scaled to fit 400×300 CSS pixels; for a document, the requested size clamped to the screen, the size of the last window of the opener (unless the page prefers the initial placement), or 400×300 CSS pixels.
HandleGets the handle with which the backend changes the size of the window or closes it, once it is open.
RequestedSizeGets the size of the viewport requested by the page (the width and height options of requestWindow()), or null.
VideoGets the video shown in the window, or null for the window of a document.

Gets the size the user agent gives the window by default: for a video, its natural size scaled to fit 400×300 CSS pixels; for a document, the requested size clamped to the screen, the size of the last window of the opener (unless the page prefers the initial placement), or 400×300 CSS pixels.

public PictureInPictureWindowSize DefaultSize { get; }

Gets the handle with which the backend changes the size of the window or closes it, once it is open.

public PictureInPictureWindowHandle Handle { get; }

Gets the size of the viewport requested by the page (the width and height options of requestWindow()), or null.

public PictureInPictureWindowSize? RequestedSize { get; }

Gets the video shown in the window, or null for the window of a document.

public HtmlVideoElement? Video { get; }

Property value

HtmlVideoElement?