macOS SDK 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 "ZoomSDKErrors.h"
7
9
10@interface ZoomSDKYUVRawDataI420 : NSObject
15-(BOOL)canAddRef;
20-(BOOL)addRef;
25-(int)releaseData;
30-(char*)getYBuffer;
35-(char*)getUBuffer;
40-(char*)getVBuffer;
45-(char*)getBuffer;
50-(unsigned int)getBufferLen;
55-(BOOL)isLimitedI420;
60-(unsigned int)getStreamWidth;
65-(unsigned int)getStreamHeight;
70-(unsigned int)getRotation;
75- (unsigned int)getSourceID;
76@end
77
78
79@protocol ZoomSDKRendererDelegate <NSObject>
80- (void)onSubscribedUserDataOn;
81- (void)onSubscribedUserDataOff;
82- (void)onSubscribedUserLeft;
83- (void)onRawDataReceived:(ZoomSDKYUVRawDataI420*)data;
84- (void)onRendererBeDestroyed;
85@end
86
87@interface ZoomSDKRenderer : NSObject
88{
89 unsigned int _userID;
92 id<ZoomSDKRendererDelegate> _delegate;
93}
94@property(nonatomic, assign)id<ZoomSDKRendererDelegate> delegate;
95
96
103- (ZoomSDKError)subscribe:(unsigned int)userID rawDataType:(ZoomSDKRawDataType)rawDataType;
104
109- (ZoomSDKError)unSubscribe;
110
115- (ZoomSDKRawDataType)getRawDataType;
116
121- (unsigned int)getUserID;
122
127- (ZoomSDKResolution)getResolution;
128
134- (ZoomSDKError)setResolution:(ZoomSDKResolution)resolution;
135@end
136
ZoomSDKError
Enumeration of common errors of SDK.
ZoomSDKResolution
ZoomSDKRawDataType
ZoomSDKRawDataType _rawDataType
unsigned int _userID
id< ZoomSDKRendererDelegate > _delegate
ZoomSDKResolution _resolution
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...
char * getUBuffer()
Get the U data.
char * getBuffer()
Get the buffer data.
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 getSourceID()
Get the s␝ource id of this data.
unsigned int getStreamWidth()
Get the stream width of this data.
char * getYBuffer()
Get the Y data.
unsigned int getRotation()
Get the rotation of this data.
unsigned int getBufferLen()
Get the buffer length of this data.
BOOL isLimitedI420()
Get if this data is limited I420 format.
char * getVBuffer()
Get the V data.