Firefox Tomorrow

web api instance property

VideoFrame: codedRect property

View on MDN ↗

Available in workers

The codedRect property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching codedWidth and codedHeight.

Value

A DOMRectReadOnly.

Examples

The following example prints the codedRect to the console.

console.log(VideoFrame.codedRect);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.