AgoraVideoEncodedFrameProtocol Category Reference

Conforms to NSObject
Declared in AgoraVideoFrame.h

Overview

The protocol of local encoded video frame.

Note: This protocol applies to iOS only.

– onVideoEncodedFrame: required method

Gets the local encoded video frame.

- (BOOL)onVideoEncodedFrame:(AgoraVideoEncodedFrame *)VideoEncodedFrame

Parameters

VideoEncodedFrame

The local encoded video frame. See AgoraVideoEncodedFrame.

Return Value

  • YES: If the video frame processing fails, the video frame is not passed back to the SDK.
  • NO: If the video frame processing fails, the video frame is still passed back to the SDK.

Availability

v3.4.5

After you successfully register the local encoded video frame protocol, the SDK triggers this callback each time a video frame is received. You can get the local encoded video frame in VideoEncodedFrame and then process the video data according to your scenario. After processing, you can use VideoEncodedFrame to pass the processed video data back to the SDK.

Discussion

Note: This callback applies to iOS only.

Declared In

AgoraVideoFrame.h