Agora RTC Objective-C API Reference Refactor

Instance Methods
<AgoraRtcMediaPlayerVideoFrameDelegate> Protocol Reference

Inherits <NSObject>.

## Instance Methods
(void) | - AgoraRtcMediaPlayer:didReceiveVideoFrame:
(void) | - AgoraRtcMediaPlayer:didReceivePixelBuffer:
(AgoraVideoFormat) | - AgoraRtcMediaPlayerGetVideoPixelFormat

## Method Documentation

## ◆ AgoraRtcMediaPlayer:didReceiveVideoFrame:

- (void) AgoraRtcMediaPlayer: |  | (id< AgoraRtcMediaPlayerProtocol > _Nonnull) | playerKit
didReceiveVideoFrame: |  | (AgoraOutputVideoFrame *_Nonnull) | videoFrame
| optional

Occurs when each time the player receives a video frame.

After registering the video frame observer, the callback occurs when each time the player receives a video frame, reporting the detailed information of the video frame.

Parameters

  playerKit | AgoraRtcMediaPlayer
  videoFrame | The detailed information of the video frame.

## ◆ AgoraRtcMediaPlayer:didReceivePixelBuffer:

- (void) AgoraRtcMediaPlayer: |  | (id< AgoraRtcMediaPlayerProtocol > _Nonnull) | playerKit
didReceivePixelBuffer: |  | (CVPixelBufferRef _Nonnull) | pixelBuffer
| optional

Occurs when each time the player receives a video frame.

After registering the video frame observer, the callback occurs when each time the player receives a video frame, reporting the detailed information of the CVPixelBufferRef.

Parameters

  playerKit | AgoraRtcMediaPlayer
  pixelBuffer | The detailed information of the CVPixelBufferRef. Format define by AgoraRtcMediaPlayerGetVideoPixelFormat.

## ◆ AgoraRtcMediaPlayerGetVideoPixelFormat

- (AgoraVideoFormat) AgoraRtcMediaPlayerGetVideoPixelFormat |  |  |
| optional

Occurs each time needs to get preference video frame type.

Returns
  AgoraVideoFormat.