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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
width
69
79
No
No
56
13.1
No
No
No
No
13.4
No

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow/width