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 Status Comment
Picture-in-Picture API
The definition of 'PictureInPicture.width' in that specification.
Unknown Initial definition

Browser compatibility

BCD tables only load in the browser

See also