VideoFrame: displayWidth property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Note: This feature is available in Dedicated Web Workers.
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