Firefox Tomorrow

web api instance property

VideoFrame: codedWidth property

View on MDN ↗

Available in workers

The codedWidth property of the VideoFrame interface returns the width of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.

Value

An integer.

Examples

The following example prints the codedWidth to the console.

console.log(VideoFrame.codedWidth);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.