VideoFrame: displayWidth property
The displayWidth property of the VideoFrame interface returns the width of the VideoFrame after applying aspect ratio adjustments.
Value
An integer.
Examples
The following example prints the displayWidth to the console.
js
console.log(VideoFrame.displayWidth);
Specifications
| Specification |
|---|
| WebCodecs # dom-videoframe-displaywidth |
Browser compatibility
BCD tables only load in the browser