Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKRenderer.h
Go to the documentation of this file.
1
6#import <Foundation/Foundation.h>
7#import <ZoomSDK/ZoomSDKErrors.h>
8
9NS_ASSUME_NONNULL_BEGIN
11
16@interface ZoomSDKYUVRawDataI420 : NSObject
21- (BOOL)canAddRef;
26- (BOOL)addRef;
31- (int)releaseData;
36- (char*_Nullable)getYBuffer;
41- (char*_Nullable)getUBuffer;
46- (char*_Nullable)getVBuffer;
51- (char*_Nullable)getBuffer;
56- (char*_Nullable)getAlphaBuffer;
61- (unsigned int)getBufferLen;
66- (unsigned int)getAlphaBufferLen;
71- (BOOL)isLimitedI420;
76- (unsigned int)getStreamWidth;
81- (unsigned int)getStreamHeight;
86- (unsigned int)getRotation;
91- (unsigned int)getSourceID;
96- (long long)getTimeStamp;
97@end
98
99
104@protocol ZoomSDKRendererDelegate <NSObject>
108- (void)onSubscribedUserDataOn;
112- (void)onSubscribedUserDataOff;
117- (void)onSubscribedUserLeft DEPRECATED_MSG_ATTRIBUTE("No longer used");
122- (void)onRawDataReceived:(ZoomSDKYUVRawDataI420*_Nullable)data;
126- (void)onRendererBeDestroyed;
127@end
128
129
134@interface ZoomSDKRenderer : NSObject
135{
136 unsigned int _subscribeID;
139 id<ZoomSDKRendererDelegate> _delegate;
140}
144@property(nonatomic, assign, nullable)id<ZoomSDKRendererDelegate> delegate;
145
152- (ZoomSDKError)subscribe:(unsigned int)subscribeID rawDataType:(ZoomSDKRawDataType)rawDataType;
153
158- (ZoomSDKError)unSubscribe;
159
164- (ZoomSDKRawDataType)getRawDataType;
165
170- (unsigned int)getSubscribeID;
171
176- (ZoomSDKResolution)getResolution;
177
183- (ZoomSDKError)setResolution:(ZoomSDKResolution)resolution;
184@end
185
186NS_ASSUME_NONNULL_END
ZoomSDKError
Enumeration of common errors of SDK.
ZoomSDKResolution
Enumeration of video resolution options.
ZoomSDKRawDataType
Enumeration of raw data types.
Subscribe to raw video or share data and handle rendering.
unsigned int _subscribeID
ZoomSDKRawDataType _rawDataType
id< ZoomSDKRendererDelegate > _delegate
ZoomSDKResolution _resolution
Represents raw YUV I420 format data received from subscribed video stream.
char *_Nullable getBuffer()
Get the buffer data.
unsigned int getStreamHeight()
Get the stream height of this data.
int releaseData()
Release the object, if you has add ref, remeber to call this api to release when you wantn't to use t...
BOOL addRef()
Add reference for this object, if you doesn't add ref, this object will be released when the callback...
BOOL canAddRef()
Get if this object can add ref.
unsigned int getAlphaBufferLen()
Get the alpha buffer length.
char *_Nullable getAlphaBuffer()
Get video alpha mask data buffer.
unsigned int getSourceID()
Get the s␝ource id of this data.
unsigned int getStreamWidth()
Get the stream width of this data.
unsigned int getRotation()
Get the rotation of this data.
char *_Nullable getUBuffer()
Get the U data.
char *_Nullable getYBuffer()
Get the Y data.
unsigned int getBufferLen()
Get the buffer length of this data.
BOOL isLimitedI420()
Get if this data is limited I420 format.
long long getTimeStamp()
Get the timestamp of the raw data.
char *_Nullable getVBuffer()
Get the V data.