VideoFrame: codedRect property
Baseline
2024
Newly available
Since September 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Want more support for this feature? Tell us why.
Note: This feature is available in Dedicated Web Workers.
The codedRect property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.
Value
Examples
The following example prints the codedRect to the console.
js
console.log(VideoFrame.codedRect);
Specifications
| Specification |
|---|
| WebCodecs> # dom-videoframe-codedrect> |