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; uid?: number; streamType?: VideoStreamType; }
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.
- 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.