Agora RTC Objective-C API Reference Refactor

Public Member Functions
IVideoEncodedFrameObserver Class Referenceabstract

## Public Member Functions
virtual bool | onEncodedVideoFrameReceived (const char *channelId, rtc::uid_t uid, const uint8_t *imageBuffer, size_t length, const rtc::EncodedVideoFrameInfo &videoEncodedFrameInfo)=0

## Detailed Description

The IVideoEncodedFrameObserver class.

## Constructor & Destructor Documentation

## ◆ ~IVideoEncodedFrameObserver()

virtual ~IVideoEncodedFrameObserver | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onEncodedVideoFrameReceived()

virtual bool onEncodedVideoFrameReceived | ( | const char * | channelId,
|  | rtc::uid_t | uid,
|  | const uint8_t * | imageBuffer,
|  | size_t | length,
|  | const rtc::EncodedVideoFrameInfo & | videoEncodedFrameInfo
| ) |  |
| pure virtual

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.

Since
  4.6.0

Parameters

  channelId | The channel name.
  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`.

Returns
  Without practical meaning.