EncodedVideoFrameInfo

  • Flutter

更新时间不可用

外部编码视频帧的信息。

Dart
class EncodedVideoFrameInfo {
  const EncodedVideoFrameInfo(
      {this.codecType,
      this.width,
      this.height,
      this.framesPerSecond,
      this.frameType,
      this.rotation,
      this.trackId,
      this.captureTimeMs,
      this.streamType});

  @JsonKey(name: 'codecType')
  final VideoCodecType? codecType;

  @JsonKey(name: 'width')
  final int? width;

  @JsonKey(name: 'height')
  final int? height;

  @JsonKey(name: 'framesPerSecond')
  final int? framesPerSecond;

  @JsonKey(name: 'frameType')
  final VideoFrameType? frameType;

  @JsonKey(name: 'rotation')
  final VideoOrientation? rotation;

  @JsonKey(name: 'trackId')
  final int? trackId;

  @JsonKey(name: 'captureTimeMs')
  final int? captureTimeMs;

  @JsonKey(name: 'streamType')
  final VideoStreamType? streamType;

  factory EncodedVideoFrameInfo.fromJson(Map<String, dynamic> json) =>
      _$EncodedVideoFrameInfoFromJson(json);

  Map<String, dynamic> toJson() => _$EncodedVideoFrameInfoToJson(this);
}

属性

参数名描述
codecType

视频编码类型,详见 VideoCodecType。默认值为 videoCodecH264 (2)。

width

视频帧的宽度 (px)。

height

视频帧的高度 (px)。

framesPerSecond

每秒的视频帧数。 当该参数不为 0 时,你可以用它计算外部编码视频帧的 Unix 时间戳。

frameType

视频帧的类型,详见 VideoFrameType。

rotation

视频帧的旋转信息,详见 VideoOrientation。

trackId

预留参数。

captureTimeMs

采集外部编码视频帧的 Unix 时间戳 (ms)。

streamType

视频流类型。详见 VideoStreamType。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?