IVideoEncodedFrameObserver

Class for receiving encoded video frames.

onEncodedVideoFrameReceived

Reports that the receiver has received a remote encoded video frame.

onEncodedVideoFrameReceived?(
    channelId: string,
    uid: number,
    imageBuffer: Uint8Array,
    length: number,
    videoEncodedFrameInfo: EncodedVideoFrameInfo
  ): void;

When you call the setRemoteVideoSubscriptionOptions method and set encodedFrameOnly to true, the SDK triggers this callback locally to report the received encoded video frame information.

Parameters

channelId
Channel name.
uid
Remote user ID.
imageBuffer
Video image buffer.
length
Data length of the video image.
videoEncodedFrameInfo
Information about the encoded video frame. See EncodedVideoFrameInfo.