Back to Content

VideoFrame: codedWidth property

files/en-us/web/api/videoframe/codedwidth/index.md

latest517 B
Original Source

{{APIRef("Web Codecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

The codedWidth property of the {{domxref("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.

js
console.log(VideoFrame.codedWidth);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}