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
videoDataThe encoded video image data.
lengthThe data length of the video image.
videoFrameInfoFor the information of the encoded video frame, see AgoraEncodedVideoFrameInfo.
channelIdThe channel name.
uidThe user id of remote user.
Returns
Without practical meaning.