Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKUserHelper.h
Go to the documentation of this file.
1
6#import <Foundation/Foundation.h>
7#import <ZMVideoSDK/ZMVideoSDKDef.h>
8#import <ZMVideoSDK/ZMVideoSDKVideoCanvas.h>
9
11
12NS_ASSUME_NONNULL_BEGIN
17@interface ZMVideoSDKVideoStatus : NSObject
18
22@property (nonatomic, assign, readonly) BOOL isHasVideoDevice;
23
27@property (nonatomic, assign, readonly) BOOL isOn;
28@end
29
34@interface ZMVideoSDKAudioStatus : NSObject
35
39@property (nonatomic, assign, readonly) ZMVideoSDKAudioType audioType;
40
44@property (nonatomic, assign, readonly) BOOL isMuted;
45
49@property (nonatomic, assign, readonly) BOOL isTalking;
50@end
51
56@interface ZMVideoSDKVideoStatisticInfo : NSObject
57
61@property (nonatomic, assign, readonly) int width;
62
66@property (nonatomic, assign, readonly) int height;
67
71@property (nonatomic, assign, readonly) int fps;
72
76@property (nonatomic, assign, readonly) int bpf;
77
81@property (nonatomic, assign, readonly) ZMVideoSDKNetworkStatus videoNetworkStatus;
82@end
83
88@interface ZMVideoSDKShareStatisticInfo : NSObject
89
93@property (nonatomic, assign, readonly) int width;
94
98@property (nonatomic, assign, readonly) int height;
99
103@property (nonatomic, assign, readonly) int fps;
104
108@property (nonatomic, assign, readonly) int bpf;
109
113@property (nonatomic, assign, readonly) ZMVideoSDKNetworkStatus shareNetworkStatus;
114@end
115
120@interface ZMVideoSDKYUVRawDataI420 : NSObject
121
125@property (nonatomic, assign, readonly) char* _Nullable yBuffer;
126
130@property (nonatomic, assign, readonly) char* _Nullable uBuffer;
131
135@property (nonatomic, assign, readonly) char* _Nullable vBuffer;
136
140@property (nonatomic, assign, readonly) char* _Nullable buffer;
141
145@property (nonatomic, assign, readonly, nullable) char* alphaBuffer;
146
150@property (nonatomic, assign, readonly) unsigned int bufferLen;
151
155@property (nonatomic, assign, readonly) unsigned int alphaBufferLen;
156
160@property (nonatomic, assign, readonly) BOOL isLimitedI420;
161
165@property (nonatomic, assign, readonly) unsigned int streamWidth;
166
170@property (nonatomic, assign, readonly) unsigned int streamHeight;
171
175@property (nonatomic, assign, readonly) unsigned int rotation;
176
180@property (nonatomic, assign, readonly) unsigned int resourceID;
181
185@property (nonatomic, assign, readonly) long long timeStamp;
190- (BOOL)canAddRef;
191
196- (BOOL)addRef;
197
202- (int)releaseRef;
203@end
204
205
210@interface ZMVideoSDKShareCursorData : NSObject
211
215@property (nonatomic, assign, readonly) unsigned int sourceID;
216
220@property (nonatomic, assign, readonly) int x;
221
225@property (nonatomic, assign, readonly) int y;
226@end
227
232@protocol ZMVideoSDKRawDataPipeDelegate <NSObject>
233@optional
234
239- (void)onRawDataFrameReceived:(ZMVideoSDKYUVRawDataI420*)data;
240
245- (void)onRawDataStatusChanged:(ZMVideoSDKRawDataStatus)status;
246
251- (void)onShareCursorDataReceived:(ZMVideoSDKShareCursorData *)info;
252@end
253
258@interface ZMVideoSDKRawDataPipe : NSObject
259
266- (ZMVideoSDKErrors)subscribe:(ZMVideoSDKResolution)resolution listener:(id<ZMVideoSDKRawDataPipeDelegate>)listener;
267
273- (ZMVideoSDKErrors)unSubscribe:(id<ZMVideoSDKRawDataPipeDelegate>)listener;
274
279- (ZMVideoSDKRawDataType)getRawdataType;
280
285- (ZMVideoSDKVideoStatus* _Nullable)getVideoStatus;
286
291- (NSString* _Nullable)getVideoDeviceName;
292
297- (ZMVideoSDKShareStatus)getShareStatus;
298
304- (ZMVideoSDKShareCapturePauseReason)getShareCapturePauseReason;
305
310- (ZMVideoSDKShareType)getShareType;
311
316- (ZMVideoSDKVideoStatisticInfo* _Nullable)getVideoStatisticInfo;
317@end
318
324
329- (ZMVideoSDKErrors)approve;
330
335- (ZMVideoSDKErrors)decline;
336@end
337
343
348- (ZMVideoSDKErrors)requestControlRemoteCamera;
349
354- (ZMVideoSDKErrors)giveUpControlRemoteCamera;
355
361- (ZMVideoSDKErrors)turnLeft:(unsigned int)range;
362
368- (ZMVideoSDKErrors)turnRight:(unsigned int)range;
369
375- (ZMVideoSDKErrors)turnUp:(unsigned int)range;
376
382- (ZMVideoSDKErrors)turnDown:(unsigned int)range;
383
389- (ZMVideoSDKErrors)zoomIn:(unsigned int)range;
390
396- (ZMVideoSDKErrors)zoomOut:(unsigned int)range;
397@end
398
399
404@interface ZMVideoSDKUser : NSObject
409- (NSString* _Nullable)getUserID;
410
415- (NSString* _Nullable)getCustomIdentity;
416
421- (NSString* _Nullable)getUserName;
422
426- (NSString* _Nullable)getUserReference;
427
432- (ZMVideoSDKAudioStatus* _Nullable)getAudioStatus;
433
438- (BOOL)isHost;
439
444- (BOOL)isManager;
445
450- (ZMVideoSDKVideoStatisticInfo* _Nullable)getVideoStatisticInfo;
451
456- (ZMVideoSDKShareStatisticInfo* _Nullable)getShareStatisticInfo;
457
462- (ZMVideoSDKRawDataPipe* _Nullable)getVideoPipe;
463
468- (ZMVideoSDKVideoCanvas * _Nullable)getVideoCanvas;
469
474- (NSArray<ZMVideoSDKShareAction*>* _Nullable)getShareActionList;
475
480- (ZMVideoSDKRemoteCameraControlHelper * _Nullable)getRemoteCameraControlHelper;
481
486- (NSArray<ZMVideoSDKRawDataPipe *>* _Nullable)getMultiCameraStreamList;
487
495- (BOOL)setUserVolume:(float)volume isSharingAudio:(BOOL)isSharingAudio DEPRECATED_MSG_ATTRIBUTE("Use -setUserPlaybackVolume:isSharingAudio: instead");
496
504- (BOOL)getUserVolume:(float*)volume isSharingAudio:(BOOL)isSharingAudio DEPRECATED_MSG_ATTRIBUTE("Use -getUserPlaybackVolume:isSharingAudio: instead");
505
512- (BOOL)canSetUserVolume:(BOOL)isShareAudio DEPRECATED_MSG_ATTRIBUTE("Use -canSetUserPlaybackVolume: instead");
513
520- (BOOL)setUserPlaybackVolume:(float)volume isSharingAudio:(BOOL)isSharingAudio;
521
528- (BOOL)getUserPlaybackVolume:(float*)volume isSharingAudio:(BOOL)isSharingAudio;
529
535- (BOOL)canSetUserPlaybackVolume:(BOOL)isShareAudio;
536
541- (unsigned int)getAudioLevel;
542
547- (BOOL)hasIndividualRecordingConsent;
548
554- (ZMVideoSDKErrors)transferFile:(NSString *)filePath;
555
560- (BOOL)isVideoSpotLighted;
561
566- (BOOL)isIncomingLiveStreamUser;
567
572- (BOOL)isInSubSession;
573
578- (ZMVideoSDKWhiteboardStatus)getWhiteboardStatus;
579
585- (ZMVideoSDKNetworkStatus)getNetworkLevel:(ZMVideoSDKDataType)type;
586
591- (ZMVideoSDKNetworkStatus)getOverallNetworkLevel;
592@end
593
598@interface ZMVideoSDKUserHelper: NSObject
599
606- (BOOL)changeName:(NSString*)name user:(ZMVideoSDKUser*)user;
607
613- (BOOL)makeHost:(ZMVideoSDKUser*)user;
614
620- (BOOL)makeManager:(ZMVideoSDKUser*)user;
621
627- (ZMVideoSDKErrors)revokeManager:(ZMVideoSDKUser*)user;
628
634- (BOOL)removeUser:(ZMVideoSDKUser*)user;
635
640- (BOOL)reclaimHost;
641@end
642
643NS_ASSUME_NONNULL_END
644
ZMVideoSDKResolution
Enumeration of render resolution.
ZMVideoSDKRawDataType
Enumeration of raw data types.
ZMVideoSDKDataType
Enumeration of the data type for network quality monitoring.
ZMVideoSDKShareCapturePauseReason
Enumeration of reasons why screen sharing capture is paused in the Zoom Video SDK.
ZMVideoSDKShareType
Enumerates the types of content that can be shared in a session.
ZMVideoSDKErrors
Enumerates all errors in the VideoSDK.
ZMVideoSDKWhiteboardStatus
Enumeration of the status of whiteboard sharing.
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.
Represents the cursor position data during screen sharing.
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.