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
UserAgentPromptPictureInPictureWindowRequest
Properties
| Name | Description |
|---|---|
| DefaultSize | 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. |
| Handle | Gets the handle with which the backend changes the size of the window or closes it, once it is open. |
| RequestedSize | Gets the size of the viewport requested by the page (the width and height options of requestWindow()), or null. |
| Video | Gets the video shown in the window, or null for the window of a document. |
DefaultSize
UserAgentUIBackend.PictureInPicture.csGets 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; }Property value
Gets the handle with which the backend changes the size of the window or closes it, once it is open.
public PictureInPictureWindowHandle Handle { get; }Property value
RequestedSize
UserAgentUIBackend.PictureInPicture.csGets the size of the viewport requested by the page (the width and height options of requestWindow()), or null.
public PictureInPictureWindowSize? RequestedSize { get; }Property value
Gets the video shown in the window, or null for the window of a document.
public HtmlVideoElement? Video { get; }