web api instance property
VideoFrame: displayWidth property
Available in 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.
console.log(VideoFrame.displayWidth);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.