onEncodedVideoFrameReceived property

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

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

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.

  • 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.

Implementation

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