onEncodedVideoFrameReceived property

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

Reports that the receiver has received the to-be-decoded video frame sent by the remote end.

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

  • uid The user ID of the remote user.
  • imageBuffer The encoded video image buffer.
  • length The data length of the video image.
  • videoEncodedFrameInfo For the information of the encoded video frame, see EncodedVideoFrameInfo.

Implementation

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