Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKVideoHelper.h
Go to the documentation of this file.
1
6#import <Foundation/Foundation.h>
8
9NS_ASSUME_NONNULL_BEGIN
15
19@property (nonatomic, copy, readonly) NSString *imageFilePath;
20
24@property (nonatomic, copy, readonly) NSString *imageName;
25
29@property (nonatomic, assign, readonly) ZMVideoSDKVirtualBackgroundDataType type;
30
34@property (nonatomic, assign, readonly) BOOL canVirtualBackgroundBeDeleted;
35
36@end
37
38
39
44@interface ZMVideoSDKCameraDevice : NSObject
48@property (nonatomic, copy, readonly) NSString* deviceID;
49
53@property (nonatomic, copy, readonly) NSString* deviceName;
54
58@property (nonatomic, assign, readonly) BOOL isSelectedDevice;
59
63@property (nonatomic, assign, readonly) BOOL isSelectedAsMultiCamera;
64
68@property (nonatomic, assign, readonly) BOOL isRunningAsMultiCamera;
69@end
70
71
76@interface ZMVideoSDKPreferenceSetting : NSObject
80@property (nonatomic, assign, readwrite) ZMVideoSDKVideoPreferenceMode mode;
81
86@property (nonatomic, assign, readwrite) unsigned int minimumFrameRate;
87
92@property (nonatomic, assign, readwrite) unsigned int maximumFrameRate;
93@end
94
95
100@interface ZMVideoSDKVideoHelper : NSObject
101
106- (ZMVideoSDKErrors)startVideo;
107
112- (ZMVideoSDKErrors)stopVideo;
113
119- (BOOL)rotateMyVideo:(ZMVideoRotation)rotation;
120
125- (BOOL)switchCamera;
126
132- (BOOL)selectCamera:(NSString*)cameraDeviceID;
133
138- (unsigned int)getNumberOfCameras;
139
144- (NSArray<ZMVideoSDKCameraDevice *>* _Nullable)getCameraList;
145
152- (ZMVideoSDKErrors)canControlCamera:(BOOL *)canControl deviceID:(nullable NSString*)deviceID;
153
160- (ZMVideoSDKErrors)turnCameraLeft:(unsigned int)range deviceID:(nullable NSString*)deviceID;
161
168- (ZMVideoSDKErrors)turnCameraRight:(unsigned int)range deviceID:(nullable NSString*)deviceID;
169
176- (ZMVideoSDKErrors)turnCameraUp:(unsigned int)range deviceID:(nullable NSString*)deviceID;
177
184- (ZMVideoSDKErrors)turnCameraDown:(unsigned int)range deviceID:(nullable NSString*)deviceID;
185
192- (ZMVideoSDKErrors)zoomCameraIn:(unsigned int)range deviceID:(nullable NSString*)deviceID;
193
200- (ZMVideoSDKErrors)zoomCameraOut:(unsigned int)range deviceID:(nullable NSString*)deviceID;
201
207- (ZMVideoSDKErrors)setVideoQualityPreference:(ZMVideoSDKPreferenceSetting*)preferenceSetting;
208
215- (BOOL)enableMultiStreamVideo:(NSString *)cameraDeviceID customDeviceName:(nullable NSString *)customDeviceName;
216
222- (BOOL)disableMultiStreamVideo:(NSString *)cameraDeviceID;
223
229- (BOOL)muteMultiStreamVideo:(NSString *)cameraDeviceID;
230
236- (BOOL)unmuteMultiStreamVideo:(NSString *)cameraDeviceID;
242- (NSString * _Nullable)getDeviceIDByMyPipe:(ZMVideoSDKRawDataPipe *)pipe;
250- (ZMVideoSDKErrors)startVideoPreview:(id<ZMVideoSDKRawDataPipeDelegate>)listener deviceID:(NSString* _Nullable)cameraDeviceID DEPRECATED_MSG_ATTRIBUTE("Use -startVideoPreview:deviceID:resolution: instead");
251
259- (ZMVideoSDKErrors)startVideoPreview:(id<ZMVideoSDKRawDataPipeDelegate>)listener deviceID:(NSString* _Nullable)cameraDeviceID resolution:(ZMVideoSDKResolution)resolution;
265- (ZMVideoSDKErrors)stopVideoPreview:(id<ZMVideoSDKRawDataPipeDelegate>)listener;
266
273- (ZMVideoSDKErrors)startVideoCanvasPreview:(NSView*)view deviceID:(NSString* _Nullable)cameraDeviceID;
274
280- (ZMVideoSDKErrors)stopVideoCanvasPreview:(NSView*)view;
281
288- (ZMVideoSDKErrors)addVirtualBackgroundItem:(NSString *)imagePath imageItem:(ZMVideoSDKVirtualBackgroundItem * _Nullable * _Nonnull)imageItem;
289
295- (ZMVideoSDKErrors)removeVirtualBackgroundItem:(ZMVideoSDKVirtualBackgroundItem *)imageItem;
296
301- (NSArray<ZMVideoSDKVirtualBackgroundItem* >* _Nullable)getVirtualBackgroundItemList;
302
308- (ZMVideoSDKErrors)setVirtualBackgroundItem:(ZMVideoSDKVirtualBackgroundItem*)imageItem;
309
314- (ZMVideoSDKVirtualBackgroundItem* _Nullable)getSelectedVirtualBackgroundItem;
315
320- (BOOL)isOriginalAspectRatioEnabled;
321
328- (BOOL)enableOriginalAspectRatio:(BOOL)bEnabled;
329
330
336- (ZMVideoSDKErrors)mirrorMyVideo:(BOOL)bEnabled;
337
342- (BOOL)isMyVideoMirrored;
343
348- (BOOL)isDeviceSupportAlphaChannelMode;
349
354- (BOOL)canEnableAlphaChannelMode;
355
361- (ZMVideoSDKErrors)enableAlphaChannelMode:(BOOL)enabled;
362
367- (BOOL)isAlphaChannelModeEnabled;
368
374- (ZMVideoSDKErrors)spotLightVideo:(ZMVideoSDKUser*)user;
375
381- (ZMVideoSDKErrors)unSpotLightVideo:(ZMVideoSDKUser*)user;
382
387- (ZMVideoSDKErrors)unSpotlightAllVideos;
388
393- (NSArray<ZMVideoSDKUser *>* _Nullable)getSpotlightedVideoUserList;
394@end
395
396NS_ASSUME_NONNULL_END
ZMVideoSDKResolution
Enumeration of render resolution.
ZMVideoSDKVideoPreferenceMode
Enumerates the video preference modes.
ZMVideoSDKErrors
Enumerates all errors in the VideoSDK.
ZMVideoSDKVirtualBackgroundDataType
Enumerates the types of virtual backgrounds.
ZMVideoRotation
Enumerates the video rotation angles.
Represents a camera device and its state.
Video preference interface. When setting custom modes, the maximum and minimum frame rates are provid...
Video/share raw data pipe interface.
Zoom Video SDK user information.
Provides functions to control virtual background.
ZMVideoSDKVirtualBackgroundDataType type
Get the current item background type.
BOOL canVirtualBackgroundBeDeleted
Determine whether the virtual background can be deleted.
NSString * imageFilePath
Get the current item image file path.
NSString * imageName
Get the current item image name.