Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
<ZMVideoSDKSharePreprocessor> Protocol Reference

Protocol to handle preprocessing of raw share data before sending it out. Implement this protocol to receive raw YUV data frames during screen sharing for custom preprocessing. More...

#include <ZMVideoSDKShareHelper.h>

Inherits <NSObjectNSObject>.

Instance Methods

(void) - onCapturedRawDataReceived:sharePreprocessSender:
 You will receive this callback when calling 'startShareWithPreprocessing' successfully.
 
(void) - onShareStopped
 You will receive this callback when call 'stopShare' successfully. In this event notification, you can perform some stop and destroy actions if necessary.
 

Detailed Description

Protocol to handle preprocessing of raw share data before sending it out. Implement this protocol to receive raw YUV data frames during screen sharing for custom preprocessing.

Definition at line 51 of file ZMVideoSDKShareHelper.h.

Method Documentation

◆ onCapturedRawDataReceived:sharePreprocessSender:

- (void) onCapturedRawDataReceived: (ZMVideoSDKYUVRawDataI420 *) rawdata
sharePreprocessSender: (ZMVideoSDKSharePreprocessSender *_Nonnull) sender 

You will receive this callback when calling 'startShareWithPreprocessing' successfully.

Parameters
rawdataYou can get the YUV data address through this object and then pre-process the data.
senderUse this object to send the processed data out.

◆ onShareStopped

- (void) onShareStopped

You will receive this callback when call 'stopShare' successfully. In this event notification, you can perform some stop and destroy actions if necessary.