Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKUserHelper.h
Go to the documentation of this file.
1
2
3#import <Foundation/Foundation.h>
4#import <ZMVideoSDK/ZMVideoSDKDef.h>
5#import <ZMVideoSDK/ZMVideoSDKVideoCanvas.h>
6
8
9NS_ASSUME_NONNULL_BEGIN
13@interface ZMVideoSDKVideoStatus : NSObject
14
18@property (nonatomic, assign, readonly) BOOL isHasVideoDevice;
19
23@property (nonatomic, assign, readonly) BOOL isOn;
24@end
25
29@interface ZMVideoSDKAudioStatus : NSObject
30
34@property (nonatomic, assign, readonly) ZMVideoSDKAudioType audioType;
35
39@property (nonatomic, assign, readonly) BOOL isMuted;
40
44@property (nonatomic, assign, readonly) BOOL isTalking;
45@end
46
50@interface ZMVideoSDKVideoStatisticInfo : NSObject
51
55@property (nonatomic, assign, readonly) int width;
56
60@property (nonatomic, assign, readonly) int height;
61
65@property (nonatomic, assign, readonly) int fps;
66
70@property (nonatomic, assign, readonly) int bpf;
71
75@property (nonatomic, assign, readonly) ZMVideoSDKNetworkStatus videoNetworkStatus;
76@end
77
81@interface ZMVideoSDKShareStatisticInfo : NSObject
82
86@property (nonatomic, assign, readonly) int width;
87
91@property (nonatomic, assign, readonly) int height;
92
96@property (nonatomic, assign, readonly) int fps;
97
101@property (nonatomic, assign, readonly) int bpf;
102
106@property (nonatomic, assign, readonly) ZMVideoSDKNetworkStatus shareNetworkStatus;
107@end
108
112@interface ZMVideoSDKYUVRawDataI420 : NSObject
113
117@property (nonatomic, assign, readonly) char* _Nullable yBuffer;
118
122@property (nonatomic, assign, readonly) char* _Nullable uBuffer;
123
127@property (nonatomic, assign, readonly) char* _Nullable vBuffer;
128
132@property (nonatomic, assign, readonly) char* _Nullable buffer;
133
137@property (nonatomic, assign, readonly, nullable) char* alphaBuffer;
138
142@property (nonatomic, assign, readonly) unsigned int bufferLen;
143
147@property (nonatomic, assign, readonly) unsigned int alphaBufferLen;
148
152@property (nonatomic, assign, readonly) BOOL isLimitedI420;
153
157@property (nonatomic, assign, readonly) unsigned int streamWidth;
158
162@property (nonatomic, assign, readonly) unsigned int streamHeight;
163
167@property (nonatomic, assign, readonly) unsigned int rotation;
168
169
173@property (nonatomic, assign, readonly) unsigned int resourceID;
174
178@property (nonatomic, assign, readonly) long long timeStamp;
183- (BOOL)canAddRef;
184
189- (BOOL)addRef;
190
195- (int)releaseRef;
196@end
197
198@interface ZMVideoSDKShareCursorData : NSObject
199
203@property (nonatomic, assign, readonly) unsigned int sourceID;
204
208@property (nonatomic, assign, readonly) int x;
209
213@property (nonatomic, assign, readonly) int y;
214@end
215
219@protocol ZMVideoSDKRawDataPipeDelegate <NSObject>
220@optional
221
226- (void)onRawDataFrameReceived:(ZMVideoSDKYUVRawDataI420*)data;
227
232- (void)onRawDataStatusChanged:(ZMVideoSDKRawDataStatus)status;
233
238- (void)onShareCursorDataReceived:(ZMVideoSDKShareCursorData *)info;
239@end
240
244@interface ZMVideoSDKRawDataPipe : NSObject
245
252- (ZMVideoSDKErrors)subscribe:(ZMVideoSDKResolution)resolution listener:(id<ZMVideoSDKRawDataPipeDelegate>)listener;
253
259- (ZMVideoSDKErrors)unSubscribe:(id<ZMVideoSDKRawDataPipeDelegate>)listener;
260
265- (ZMVideoSDKRawDataType)getRawdataType;
266
271- (ZMVideoSDKVideoStatus* _Nullable)getVideoStatus;
272
277- (NSString* _Nullable)getVideoDeviceName;
278
283- (ZMVideoSDKShareStatus)getShareStatus;
284
289- (ZMVideoSDKShareType)getShareType;
290
295- (ZMVideoSDKVideoStatisticInfo* _Nullable)getVideoStatisticInfo;
296@end
297
302
307- (ZMVideoSDKErrors)approve;
308
313- (ZMVideoSDKErrors)decline;
314@end
315
320
325- (ZMVideoSDKErrors)requestControlRemoteCamera;
326
331- (ZMVideoSDKErrors)giveUpControlRemoteCamera;
332
338- (ZMVideoSDKErrors)turnLeft:(unsigned int)range;
339
345- (ZMVideoSDKErrors)turnRight:(unsigned int)range;
346
352- (ZMVideoSDKErrors)turnUp:(unsigned int)range;
353
359- (ZMVideoSDKErrors)turnDown:(unsigned int)range;
360
366- (ZMVideoSDKErrors)zoomIn:(unsigned int)range;
367
373- (ZMVideoSDKErrors)zoomOut:(unsigned int)range;
374@end
375
376
380@interface ZMVideoSDKUser : NSObject
385- (NSString* _Nullable)getUserID;
386
391- (NSString* _Nullable)getCustomIdentity;
392
397- (NSString* _Nullable)getUserName;
398
402- (NSString* _Nullable)getUserReference;
403
408- (ZMVideoSDKAudioStatus* _Nullable)getAudioStatus;
409
414- (BOOL)isHost;
415
420- (BOOL)isManager;
421
426- (ZMVideoSDKVideoStatisticInfo* _Nullable)getVideoStatisticInfo;
427
432- (ZMVideoSDKShareStatisticInfo* _Nullable)getShareStatisticInfo;
433
438- (ZMVideoSDKRawDataPipe* _Nullable)getVideoPipe;
439
444- (ZMVideoSDKVideoCanvas * _Nullable)getVideoCanvas;
445
450- (NSArray<ZMVideoSDKShareAction*>* _Nullable)getShareActionList;
451
456- (ZMVideoSDKRemoteCameraControlHelper * _Nullable)getRemoteCameraControlHelper;
457
462- (NSArray<ZMVideoSDKRawDataPipe *>* _Nullable)getMultiCameraStreamList;
463
470- (BOOL)setUserVolume:(float)volume isSharingAudio:(BOOL)isSharingAudio;
471
478- (BOOL)getUserVolume:(float*)volume isSharingAudio:(BOOL)isSharingAudio;
479
485- (BOOL)canSetUserVolume:(BOOL)isShareAudio;
486
490- (BOOL)hasIndividualRecordingConsent;
491
497- (ZMVideoSDKErrors)transferFile:(NSString *)filePath;
498
503- (BOOL)isVideoSpotLighted;
504
509- (BOOL)isIncomingLiveStreamUser;
510
515- (BOOL)isInSubSession;
516@end
517
521@interface ZMVideoSDKUserHelper: NSObject
522
529- (BOOL)changeName:(NSString*)name user:(ZMVideoSDKUser*)user;
530
536- (BOOL)makeHost:(ZMVideoSDKUser*)user;
537
543- (BOOL)makeManager:(ZMVideoSDKUser*)user;
544
550- (BOOL)revokeManager:(ZMVideoSDKUser*)user;
551
557- (BOOL)removeUser:(ZMVideoSDKUser*)user;
558
563- (BOOL)reclaimHost;
564@end
565
566NS_ASSUME_NONNULL_END
567
ZMVideoSDKResolution
Enumeration of render resolution.
ZMVideoSDKRawDataType
Enumeration of raw data types.
ZMVideoSDKShareType
Enumerates the types of content that can be shared in a session.
ZMVideoSDKErrors
Enumerates all errors in the VideoSDK.
ZMVideoSDKRawDataStatus
Enumeration the statuses of raw data.
ZMVideoSDKNetworkStatus
Enumerates the network statuses.
ZMVideoSDKShareStatus
Enumerates the status of sharing.
ZMVideoSDKAudioType
Enumerates the types of audio.
Audio status interface.
Camera control request handler object interface.
Video/share raw data pipe interface.
Remote camera control helper object interface.
Represents the state and control interfaces of a share action in a Zoom session.
Share statistic infomation interface.
User control interface.
Zoom Video SDK user information.
Manages the rendering of video or screen share content in the Zoom Video SDK.
Video statistic information interface.
ZMVideoSDKVideoStatus provides information on the user's video device (the detected compatible video ...
BOOL isHasVideoDevice
Query if the user's device has a compatible camera. YES : compatible camera detected,...
BOOL isOn
Query if the camera is turned on. YES : camera turned on, NO : camera turned off.
YUV raw data 420 infomation interface.