# VideoDimensions (/zh-CN/api-reference/rtc/harmonyos/class-videodimensions) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```ts export class VideoDimensions { constructor(w : number, h : number) { this.width = w; this.height = h; } public width:number; public height:number; } ``` ## 视频宽度,单位为像素。 视频高度,单位为像素。