# VideoDimensions (/zh-CN/api-reference/rtc/harmonyos/class-videodimensions)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_videodimensions__prototype"></a>

```ts
export class VideoDimensions {
  constructor(w : number, h : number) {
    this.width = w;
    this.height = h;
  }
  public width:number;
  public height:number;
}
```

<a id="class_videodimensions__parameters"></a>

##

<ParameterList>
<a id="width"></a>
<Parameter name="width">

视频宽度，单位为像素。

</Parameter>
<a id="height"></a>
<Parameter name="height">

视频高度，单位为像素。

</Parameter>
</ParameterList>
