IVideoEncodedFrameObserver

Receives encoded video images.

onEncodedVideoFrameReceived

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

boolean onEncodedVideoFrameReceived(ByteBuffer buffer, EncodedVideoFrameInfo info);

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.

Parameters

buffer
The encoded video image buffer.
info
For the information of the encoded video frame, see EncodedVideoFrameInfo.

Returns

Without practical meaning.