Meeting SDK for iOS API Reference
Loading...
Searching...
No Matches
<MobileRTCVideoRawDataDelegate> Protocol Reference

This class is used to receive video raw data. More...

#include <MobileRTCMeetingDelegate.h>

Inherits <NSObject>.

Instance Methods

(void) - onMobileRTCRender:framePixelBuffer:extraInfo:
 This method is used to receive video's NV12 data (CVPixelBufferRef) together with rich per-frame metadata.
(void) - onMobileRTCRender:framePixelBuffer:rotation:
 This method is used to receive video's NV12 data(CVPixelBufferRef).
(void) - onMobileRTCRender:frameRawData:
 This method is used to receive video's YUV420 data.
(void) - onMobileRTCRender:rawDataSending:
 Callback event when the sender stop/start to sending raw data.

Detailed Description

This class is used to receive video raw data.

Note
The MobileRTCVideoRawDataDelegate protocol is required in the custom meeting UI view.

Definition at line 1721 of file MobileRTCMeetingDelegate.h.

Method Documentation

◆ onMobileRTCRender:framePixelBuffer:extraInfo:

- (void) onMobileRTCRender: (MobileRTCRenderer *_Nonnull) renderer
framePixelBuffer: (CVPixelBufferRef _Nullable) pixelBuffer
extraInfo: (MobileRTCVideoPixelBufferExtraInfo *_Nonnull) extraInfo 
optional

This method is used to receive video's NV12 data (CVPixelBufferRef) together with rich per-frame metadata.

Prefer this selector over the legacy -onMobileRTCRender:framePixelBuffer:rotation: when you need access to sender-side face ROI metadata or any future per-frame fields. The MobileRTCVideoPixelBufferExtraInfo container is designed to absorb future additions without further selector churn.

Note
If your delegate implements both this selector and the legacy -onMobileRTCRender:framePixelBuffer:rotation: selector, both will be called for every frame. New code should implement only this extraInfo: variant.
Parameters
rendererThe MobileRTCRenderer instance.
pixelBufferNV12 CVPixelBufferRef for the frame. The buffer is released by the SDK after this callback returns; call CVPixelBufferRetain to retain it for asynchronous use.
extraInfoPer-frame metadata container; non-null. See MobileRTCVideoPixelBufferExtraInfo for current fields (rotation, faceROIInfo).

◆ onMobileRTCRender:framePixelBuffer:rotation:

- (void) onMobileRTCRender: (MobileRTCRenderer *_Nonnull) renderer
framePixelBuffer: (CVPixelBufferRef _Nullable) pixelBuffer
rotation: (MobileRTCVideoRawDataRotation) rotation 
optionalrequired

This method is used to receive video's NV12 data(CVPixelBufferRef).

Deprecated
Use -onMobileRTCRender:framePixelBuffer:extraInfo: instead. The new selector delivers the same CVPixelBufferRef along with a MobileRTCVideoPixelBufferExtraInfo container that exposes face ROI metadata and is designed to absorb future per-frame fields without further selector churn. While this legacy selector continues to function, it should not be implemented together with the extraInfo: variant on the same delegate - both would be called for every frame.
Parameters
pixelBufferVideo's CVPixelBufferRef data.
rendererThe MobileRTCRenderer’s object.

◆ onMobileRTCRender:frameRawData:

- (void) onMobileRTCRender: (MobileRTCRenderer *_Nonnull) renderer
frameRawData: (MobileRTCVideoRawData *_Nonnull) rawData 
optionalrequired

This method is used to receive video's YUV420 data.

Parameters
rawDataVideo's YUV420 data.
rendererThe MobileRTCRenderer’s object.

◆ onMobileRTCRender:rawDataSending:

- (void) onMobileRTCRender: (MobileRTCRenderer *_Nonnull) renderer
rawDataSending: (BOOL) on 
optionalrequired

Callback event when the sender stop/start to sending raw data.

Parameters
rendererThe MobileRTCRenderer’s object.
onRaw data is sending or not.