EncodedVideoFrameInfo

Information about externally encoded video frames.

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);
}

Properties

codecType
Video codec type. See VideoCodecType. Default is videoCodecH264 (2).
width
Width of the video frame (px).
height
Height of the video frame (px).
framesPerSecond
Frames per second. When this parameter is not 0, you can use it to calculate the Unix timestamp of the externally encoded video frame.
frameType
Type of the video frame. See VideoFrameType.
rotation
Rotation information of the video frame. See VideoOrientation.
trackId
Reserved parameter.
captureTimeMs
Unix timestamp (ms) when the external encoded video frame was captured.
streamType
Video stream type. See VideoStreamType.