|
Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Instance Methods | |
| (void) | - AgoraRtcMediaPlayer:didReceiveVideoFrame: |
| (void) | - AgoraRtcMediaPlayer:didReceivePixelBuffer: |
| (AgoraVideoFormat) | - AgoraRtcMediaPlayerGetVideoPixelFormat |
|
optional |
Occurs each time the player receives a video frame.
After registering the video frame observer, the callback occurs every time the player receives a video frame, reporting the detailed information of the video frame.
| playerKit | See AgoraRtcMediaPlayerProtocol. |
| videoFrame | Video frame information. See AgoraOutputVideoFrame. |
|
optional |
Occurs when the SDK gets the pixel buffer of the video source.
When the media player receives the pixel buffer of the video source, this callback is triggered to report the detailed information about the pixel buffer of type CVPixelBufferRef. You can use this information for image processing and analysis, custom rendering, etc.
| playerKit | The AgoraRtcMediaPlayerProtocol instance. |
| pixelBuffer | A CVPixelBufferRef object that contains detailed information about the pixel buffer. |
|
optional |
Sets the format of raw video data.
You need to register the callback when calling the setVideoFrameDelegate: method. This callback is triggered when the media player receives every video frame. You can set the desired video data format in the return value of this callback.
AgoraVideoFormat. By default, the original video pixel format ( AgoraVideoFormatDefault ) may be I420 or CVPixelBufferRef.