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 receives this callback when calling 'startShareWithPreprocessing' successfully.
 
(void) - onShareStopped
 You receives this callback when call 'stopShare' successfully. In this event notification, 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 55 of file ZMVideoSDKShareHelper.h.

Method Documentation

◆ onCapturedRawDataReceived:sharePreprocessSender:

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

You receives this callback when calling 'startShareWithPreprocessing' successfully.

Parameters
rawdataGet 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 receives this callback when call 'stopShare' successfully. In this event notification, perform some stop and destroy actions if necessary.