PictureInPictureWindow.width

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

Syntax

let width = pictureInPictureWindow.width;

Value

An integer value indicating the width of the floating video window in pixels. This property is read-only, and has no default value.

Specifications

Specification
Picture-in-Picture
# ref-for-dom-pictureinpicturewindow-width

Browser compatibility

BCD tables only load in the browser

See also