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

The **`displayWidth`** property of the {{domxref("VideoFrame")}} interface returns the width of the `VideoFrame` after applying aspect ratio adjustments.

### Value

An integer.

## Examples

The following example prints the `displayWidth` to the console.

```js
console.log(VideoFrame.displayWidth);
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
