Agora RTC Objective-C API Reference Refactor

Instance Methods
<AgoraEncodedVideoFrameDelegate> Protocol Reference

Inherits <NSObject>.

## Instance Methods
(BOOL) | - onEncodedVideoFrameReceived:length:info:channelId:uid:

## Method Documentation

## ◆ onEncodedVideoFrameReceived:length:info:channelId:uid:

- (BOOL) onEncodedVideoFrameReceived: |  | (NSData *_Nonnull) | videoData
length: |  | (size_t) | length
info: |  | (AgoraEncodedVideoFrameInfo *_Nonnull) | videoFrameInfo
channelId: |  | (NSString *_Nonnull) | channelId
uid: |  | (NSUInteger) | uid
| optional

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

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

Since
  4.6.0

Parameters

  videoData | The encoded video image data.
  length | The data length of the video image.
  videoFrameInfo | For the information of the encoded video frame, see `AgoraEncodedVideoFrameInfo`.
  channelId | The channel name.
  uid | The user id of remote user.

Returns
  Without practical meaning.