Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKVideoHelper.h
Go to the documentation of this file.
1
5
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
107
113
119- (BOOL)rotateMyVideo:(ZMVideoRotation)rotation;
120
127
134- (BOOL)selectCamera:(NSString*)cameraDeviceID;
135
140- (unsigned int)getNumberOfCameras;
141
146- (NSArray<ZMVideoSDKCameraDevice *>* _Nullable)getCameraList;
147
154- (ZMVideoSDKErrors)canControlCamera:(BOOL *)canControl deviceID:(nullable NSString*)deviceID;
155
162- (ZMVideoSDKErrors)turnCameraLeft:(unsigned int)range deviceID:(nullable NSString*)deviceID;
163
170- (ZMVideoSDKErrors)turnCameraRight:(unsigned int)range deviceID:(nullable NSString*)deviceID;
171
178- (ZMVideoSDKErrors)turnCameraUp:(unsigned int)range deviceID:(nullable NSString*)deviceID;
179
186- (ZMVideoSDKErrors)turnCameraDown:(unsigned int)range deviceID:(nullable NSString*)deviceID;
187
194- (ZMVideoSDKErrors)zoomCameraIn:(unsigned int)range deviceID:(nullable NSString*)deviceID;
195
202- (ZMVideoSDKErrors)zoomCameraOut:(unsigned int)range deviceID:(nullable NSString*)deviceID;
203
209- (ZMVideoSDKErrors)setVideoQualityPreference:(ZMVideoSDKPreferenceSetting*)preferenceSetting;
210
217- (BOOL)enableMultiStreamVideo:(NSString *)cameraDeviceID customDeviceName:(nullable NSString *)customDeviceName;
218
224- (BOOL)disableMultiStreamVideo:(NSString *)cameraDeviceID;
225
231- (BOOL)muteMultiStreamVideo:(NSString *)cameraDeviceID;
232
238- (BOOL)unmuteMultiStreamVideo:(NSString *)cameraDeviceID;
244- (NSString * _Nullable)getDeviceIDByMyPipe:(ZMVideoSDKRawDataPipe *)pipe;
245
254- (ZMVideoSDKErrors)startVideoPreview:(id<ZMVideoSDKRawDataPipeDelegate>)listener deviceID:(NSString* _Nullable)cameraDeviceID resolution:(ZMVideoSDKResolution)resolution DEPRECATED_MSG_ATTRIBUTE("Use -startVideoPreview:cameraDeviceID:resolution: instead");
255
264- (ZMVideoSDKErrors)startVideoPreview:(id<ZMVideoSDKRawDataPipeDelegate>)listener cameraDeviceID:(NSString* _Nullable)cameraDeviceID resolution:(ZMVideoSDKResolution)resolution;
270- (ZMVideoSDKErrors)stopVideoPreview:(id<ZMVideoSDKRawDataPipeDelegate>)listener;
271
278- (ZMVideoSDKErrors)startVideoCanvasPreview:(NSView*)view deviceID:(NSString* _Nullable)cameraDeviceID DEPRECATED_MSG_ATTRIBUTE("Use -startVideoCanvasPreview:cameraDeviceID:aspectMode: instead");
279
288- (ZMVideoSDKErrors)startVideoCanvasPreview:(NSView*)view cameraDeviceID:(NSString* _Nullable)cameraDeviceID aspectMode:(ZMVideoSDKVideoAspect)aspect;
289
295- (ZMVideoSDKErrors)stopVideoCanvasPreview:(NSView*)view;
296
303- (ZMVideoSDKErrors)addVirtualBackgroundItem:(NSString *)imagePath imageItem:(ZMVideoSDKVirtualBackgroundItem * _Nullable * _Nonnull)imageItem;
304
310- (ZMVideoSDKErrors)removeVirtualBackgroundItem:(ZMVideoSDKVirtualBackgroundItem *)imageItem;
311
317
323- (ZMVideoSDKErrors)setVirtualBackgroundItem:(ZMVideoSDKVirtualBackgroundItem*)imageItem;
324
330
336
343- (BOOL)enableOriginalAspectRatio:(BOOL)bEnabled;
344
345
351- (ZMVideoSDKErrors)mirrorMyVideo:(BOOL)bEnabled;
352
358
364
370
376- (ZMVideoSDKErrors)enableAlphaChannelMode:(BOOL)enabled;
377
383
389- (ZMVideoSDKErrors)spotLightVideo:(ZMVideoSDKUser*)user;
390
396- (ZMVideoSDKErrors)unSpotLightVideo:(ZMVideoSDKUser*)user;
397
403
409@end
410
411NS_ASSUME_NONNULL_END
ZMVideoSDKResolution
Enumeration of render resolution.
ZMVideoSDKVideoAspect
Enumeration of the video aspect ratio.
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.
Defines user-related interfaces and functionalities in Zoom Video SDK.
Represents a camera device and its state.
BOOL isRunningAsMultiCamera
Determines whether the camera is running as multiple stream video.
BOOL isSelectedAsMultiCamera
Determines whether the camera is selected as multiple stream video.
NSString * deviceID
Gets the camera's device Id.
NSString * deviceName
Gets the camera's device name.
BOOL isSelectedDevice
Determines if the device is selected.
Video preference interface. When setting custom modes, the maximum and minimum frame rates are provid...
unsigned int minimumFrameRate
Minimum frame rate, default is 0.
unsigned int maximumFrameRate
Maximum frame rate, default is 0.
ZMVideoSDKVideoPreferenceMode mode
Preferred video mode.
Video or share raw data pipe interface.
Zoom Video SDK user information.
An interface to control video and manage cameras during a video session.
NSArray< ZMVideoSDKVirtualBackgroundItem * > *_Nullable getVirtualBackgroundItemList()
Returns a collection of virtual background item as an object of ZMVideoSDKVirtualBackgroundItem.
NSArray< ZMVideoSDKCameraDevice * > *_Nullable getCameraList()
Returns a collection of camera devices available to share the video as an object of ZMVideoSDKCameraD...
ZMVideoSDKErrors stopVideo()
Stops sending local video data from the camera.
BOOL isDeviceSupportAlphaChannelMode()
Determines if the current device supports alpha channel mode.
NSArray< ZMVideoSDKUser * > *_Nullable getSpotlightedVideoUserList()
Enables or disables alpha channel mode.
BOOL isAlphaChannelModeEnabled()
Determines if alpha channel mode is enabled.
BOOL isOriginalAspectRatioEnabled()
Determines whether current aspect ratio is the original aspect ratio of video.
ZMVideoSDKVirtualBackgroundItem *_Nullable getSelectedVirtualBackgroundItem()
Gets a selected virtual background item.
BOOL switchCamera()
Switches to the next available camera.
BOOL canEnableAlphaChannelMode()
Determines if alpha channel mode is available.
ZMVideoSDKErrors startVideo()
Starts sending local video data from the camera.
unsigned int getNumberOfCameras()
Returns number of cameras available to share the video.
ZMVideoSDKErrors unSpotlightAllVideos()
Sets all user's video unSpotlight.
BOOL isMyVideoMirrored()
Determines whether mirror my video is enabled.
Virtual background Item interface.
ZMVideoSDKVirtualBackgroundDataType type
Gets the current item background type.
BOOL canVirtualBackgroundBeDeleted
Determines whether the virtual background supports deletion.
NSString * imageFilePath
Gets the current item image file path.
NSString * imageName
Gets the current item image name.