Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKRenderer.h
Go to the documentation of this file.
1//
2// ZoomSDKRenderer.h
3// ZoomSDK
4
5#import <Foundation/Foundation.h>
6#import <ZoomSDK/ZoomSDKErrors.h>
7
8NS_ASSUME_NONNULL_BEGIN
10
11@interface ZoomSDKYUVRawDataI420 : NSObject
16- (BOOL)canAddRef;
21- (BOOL)addRef;
26- (int)releaseData;
31- (char*_Nullable)getYBuffer;
36- (char*_Nullable)getUBuffer;
41- (char*_Nullable)getVBuffer;
46- (char*_Nullable)getBuffer;
51- (char*_Nullable)getAlphaBuffer;
56- (unsigned int)getBufferLen;
61- (unsigned int)getAlphaBufferLen;
66- (BOOL)isLimitedI420;
71- (unsigned int)getStreamWidth;
76- (unsigned int)getStreamHeight;
81- (unsigned int)getRotation;
86- (unsigned int)getSourceID;
91- (long long)getTimeStamp;
92@end
93
94
95@protocol ZoomSDKRendererDelegate <NSObject>
99- (void)onSubscribedUserDataOn;
103- (void)onSubscribedUserDataOff;
108- (void)onSubscribedUserLeft DEPRECATED_MSG_ATTRIBUTE("No longer used");
113- (void)onRawDataReceived:(ZoomSDKYUVRawDataI420*_Nullable)data;
117- (void)onRendererBeDestroyed;
118@end
119
120@interface ZoomSDKRenderer : NSObject
121{
122 unsigned int _subscribeID;
125 id<ZoomSDKRendererDelegate> _delegate;
126}
127@property(nonatomic, assign, nullable)id<ZoomSDKRendererDelegate> delegate;
128
129
136- (ZoomSDKError)subscribe:(unsigned int)subscribeID rawDataType:(ZoomSDKRawDataType)rawDataType;
137
142- (ZoomSDKError)unSubscribe;
143
148- (ZoomSDKRawDataType)getRawDataType;
149
154- (unsigned int)getSubscribeID;
155
160- (ZoomSDKResolution)getResolution;
161
167- (ZoomSDKError)setResolution:(ZoomSDKResolution)resolution;
168@end
169
170NS_ASSUME_NONNULL_END
ZoomSDKError
Enumeration of common errors of SDK.
ZoomSDKResolution
Enumeration of video resolution options.
ZoomSDKRawDataType
Enumeration of raw data types.
unsigned int _subscribeID
ZoomSDKRawDataType _rawDataType
id< ZoomSDKRendererDelegate > _delegate
ZoomSDKResolution _resolution
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.