EncodedVideoFrameInfo

Information about externally encoded video frames.

export class EncodedVideoFrameInfo {

  codecType?: VideoCodecType;

  width?: number;

  height?: number;

  framesPerSecond?: number;

  frameType?: VideoFrameType;

  rotation?: VideoOrientation;

  trackId?: number;

  captureTimeMs?: number;

  streamType?: VideoStreamType;
}

Properties

codecType
Video codec type. See VideoCodecType. Default value is VideoCodecH264 (2).
width
Width of the video frame (px).
height
Height of the video frame (px).
framesPerSecond
Number of video 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 externally encoded video frame was captured.
streamType
Type of video stream. See VideoStreamType.