Class PictureInPictureWindow
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The PictureInPictureWindow interface represents an object able to programmatically obtain the width and height and resize event of the floating video window.
[Value("PictureInPictureWindow")]
public class PictureInPictureWindow : EventTarget
- Inheritance
-
PictureInPictureWindow
- Inherited Members
Remarks
An object with this interface is obtained using the RequestPictureInPicture() promise return value.
Constructors
PictureInPictureWindow()
public PictureInPictureWindow()
Properties
Height
The read-only height property of the PictureInPictureWindow interface returns the height of the floating video window in pixels.
[Value("height")]
public long Height { get; }
Property Value
- long
An integer value indicating the height of the floating video window in pixels if the Picture-in-Picture window is open. Otherwise, it returns
0.
Remarks
Onresize
[Value("onresize")]
public EventHandlerNonNull Onresize { get; set; }
Property Value
Width
The read-only width property of the PictureInPictureWindow interface returns the width of the floating video window in pixels.
[Value("width")]
public long Width { get; }
Property Value
- long
An integer value indicating the width of the floating video window in pixels if the Picture-in-Picture window is open. Otherwise, it returns
0.