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.uid,
      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: 'uid')
  final int? uid;

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

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

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

Attributes

codecType
The codec type of the local video stream. See VideoCodecType. The default value is videoCodecH264 (2).
width
Width (pixel) of the video frame.
height
Height (pixel) of the video frame.
framesPerSecond

The number of video frames per second.

When this parameter is not 0, you can use it to calculate the Unix timestamp of externally encoded video frames.

frameType
The video frame type. See VideoFrameType.
rotation
The rotation information of the video frame. See VideoOrientation.
trackId
Reserved for future use.
The track ID. Used in scenarios with multiple video tracks in the channel.
captureTimeMs
The Unix timestamp (ms) for capturing the external encoded video frames.
uid
The user ID to push the externally encoded video frame.
streamType
The type of video streams. See VideoStreamType.