VideoFormat

Video frame format.

class VideoFormat {
  const VideoFormat({this.width, this.height, this.fps});

  @JsonKey(name: 'width')
  final int? width;
  @JsonKey(name: 'height')
  final int? height;
  @JsonKey(name: 'fps')
  final int? fps;
  factory VideoFormat.fromJson(Map<String, dynamic> json) =>
      _$VideoFormatFromJson(json);
  Map<String, dynamic> toJson() => _$VideoFormatToJson(this);
}

Properties

width
Width of the video frame (px). Default is 960.
height
Height of the video frame (px). Default is 540.
fps
Frame rate of the video frame. Default is 15.