---
title: VideoFrame.codedWidth
slug: Web/API/VideoFrame/codedWidth
tags:
  - API
  - Property
  - Reference
  - codedWidth
  - VideoFrame
browser-compat: api.VideoFrame.codedWidth
---
{{DefaultAPISidebar("Web Codecs API")}}

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}}


