VideoFrame.displayWidth
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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
Specification |
---|
WebCodecs # dom-videoframe-displaywidth |
Browser compatibility
BCD tables only load in the browser