macOS SDK API Reference
Loading...
Searching...
No Matches
ZoomSDKRawDataController.h
Go to the documentation of this file.
1//
2// ZoomSDKRawDataController.h
3// ZoomSDK
4//
5
6#import <Foundation/Foundation.h>
7#import "ZoomSDKErrors.h"
8#import "ZoomSDKRenderer.h"
9
13
14@interface ZoomSDKAudioRawData : NSObject
19-(BOOL)canAddRef;
24-(BOOL)addRef;
29-(int)releaseData;
34-(char*)getBuffer;
39-(unsigned int)getBufferLen;
44-(unsigned int)getSampleRate;
49-(unsigned int)getChannelNum;
50@end
51
52@protocol ZoomSDKAudioRawDataDelegate <NSObject>
57- (void)onMixedAudioRawDataReceived:(ZoomSDKAudioRawData*)data;
63- (void)onOneWayAudioRawDataReceived:(ZoomSDKAudioRawData*)data nodeID:(unsigned int)nodeID;
64@end
65
66@interface ZoomSDKAudioRawDataHelper : NSObject
67{
68 id<ZoomSDKAudioRawDataDelegate> _delegate;
69}
70@property(nonatomic, assign)id<ZoomSDKAudioRawDataDelegate> delegate;
75- (ZoomSDKError)subscribe;
80- (ZoomSDKError)unSubscribe;
81@end
82
83
84@interface ZoomSDKRawDataController : NSObject
85{
90}
95- (ZoomSDKError)hasRawDataLicense;
101- (ZoomSDKError)getAudioRawDataHelper:(ZoomSDKAudioRawDataHelper**)audioRawDataHelper;
102
108- (ZoomSDKError)getRawDataVideoSourceHelper:(ZoomSDKRawDataVideoSourceController**)videoRawDataSendHelper;
109
115- (ZoomSDKError)getRawDataShareSourceHelper:(ZoomSDKRawDataShareSourceController**)shareRawDataSendHelper;
116
122- (ZoomSDKError)getRawDataAudioSourceHelper:(ZoomSDKRawDataAudioSourceController**)audioRawDataSendHelper;
123
129- (ZoomSDKError)creatRender:(ZoomSDKRenderer**)render;
130
136- (ZoomSDKError)destoryRender:(ZoomSDKRenderer*)render;
137@end
ZoomSDKError
Enumeration of common errors of SDK.
id< ZoomSDKAudioRawDataDelegate > _delegate
int releaseData()
Release the object, if you has add ref, remeber to call this api to release when you wantn't to use t...
unsigned int getChannelNum()
Get the channel number of this data.
char * getBuffer()
Get the buffer data.
BOOL canAddRef()
Get if this object can add ref.
unsigned int getSampleRate()
Get the sample rate of this data.
BOOL addRef()
Add reference for this object, if you doesn't add ref, this object will be released when the callback...
unsigned int getBufferLen()
Get the buffer length of this data.
ZoomSDKAudioRawDataHelper * _audioRawDataHelper
ZoomSDKRawDataShareSourceController * _rawDataShareSourceHelper
ZoomSDKRawDataAudioSourceController * _rawDataAudioSourceHelper
ZoomSDKRawDataVideoSourceController * _rawDataVideoSourceHelper