VideoEncodedFrameObserver

Class used to receive encoded video frames.

onEncodedVideoFrameReceived

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

final void Function(String channelId, int uid, Uint8List imageBuffer, int length,
      EncodedVideoFrameInfo videoEncodedFrameInfo)? onEncodedVideoFrameReceived;

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 frame buffer.
length
Data length of the video frame.
videoEncodedFrameInfo
Information about the encoded video frame. See EncodedVideoFrameInfo.