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

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

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

```dart
class VideoDimensions {
  const VideoDimensions({this.width, this.height});

  @JsonKey(name: 'width')
  final int? width;
  @JsonKey(name: 'height')
  final int? height;
  factory VideoDimensions.fromJson(Map<String, dynamic> json) =>
      _$VideoDimensionsFromJson(json);
  Map<String, dynamic> toJson() => _$VideoDimensionsToJson(this);
}
```

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

## 属性 [#属性]

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

视频宽度，单位为像素。

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

视频高度，单位为像素。

</Parameter>
</ParameterList>
