Video SDK for iOS API Reference
Loading...
Searching...
No Matches
ZoomVideoSDKVideoHelper.h
Go to the documentation of this file.
1
5
6#import <Foundation/Foundation.h>
7#import <AVFoundation/AVFoundation.h>
8#import <ZoomVideoSDK/ZoomVideoSDKConstants.h>
9#import <ZoomVideoSDK/ZoomVideoSDKRawDataPipe.h>
10
11@protocol ZoomVideoSDKRawDataPipeDelegate;
14
19@interface ZoomVideoSDKVideoStatus : NSObject
23@property (nonatomic, assign) BOOL on;
24
25@end
26
27
33
37@property (nonatomic, assign) ZoomVideoSDKVideoPreferenceMode mode;
38
43@property (nonatomic, assign) NSUInteger minimumFrameRate;
44
49@property (nonatomic, assign) NSUInteger maximumFrameRate;
50
51@end
52
57@interface ZoomVideoSDKCameraDevice : NSObject
61@property (nonatomic, readonly, nullable, copy) NSString* deviceId;
65@property (nonatomic, readonly, nullable, copy) NSString* deviceName;
69@property (nonatomic, readonly, assign) BOOL isSelectDevice;
73@property (nonatomic, readonly, assign) AVCaptureDevicePosition position;
77@property (nonatomic, readonly, nullable, copy) AVCaptureDeviceType deviceType;
81@property (nonatomic, readonly, assign) CGFloat maxZoomFactor;
85@property (nonatomic, readonly, assign) CGFloat videoZoomFactorUpscaleThreshold;
89@property (nonatomic, readonly, assign) BOOL isSelectedAsMultiCamera;
93@property (nonatomic, readonly, assign) BOOL isRunningAsMultiCamera;
94
95@end
96
101@interface ZoomVideoSDKVideoHelper : NSObject
102
110- (ZoomVideoSDKError)startVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate>_Nullable)delegate resolution:(ZoomVideoSDKVideoResolution)resolution DEPRECATED_MSG_ATTRIBUTE("Use -startVideoPreview:cameraDeviceID:resolution: instead");
111
120- (ZoomVideoSDKError)startVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate>_Nullable)delegate cameraDeviceID:(NSString * _Nullable)cameraDeviceID resolution:(ZoomVideoSDKVideoResolution)resolution;
121
127- (ZoomVideoSDKError)stopVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate> _Nullable)delegate;
128
136- (ZoomVideoSDKError)startVideoCanvasPreview:(UIView * _Nullable)view andAspectMode:(ZoomVideoSDKVideoAspect)aspect DEPRECATED_MSG_ATTRIBUTE("Use -startVideoCanvasPreview:cameraDeviceID:aspectMode: instead");
137
146- (ZoomVideoSDKError)startVideoCanvasPreview:(UIView * _Nullable)view cameraDeviceID:(NSString * _Nullable)cameraDeviceID aspectMode:(ZoomVideoSDKVideoAspect)aspect;
147
153- (ZoomVideoSDKError)stopVideoCanvasPreview:(UIView * _Nullable)view;
154
160
166
173- (BOOL)rotateMyVideo:(UIDeviceOrientation)rotation;
174
181- (ZoomVideoSDKError)mirrorMyVideo:(BOOL)enable;
182
189
194- (void)switchCamera API_UNAVAILABLE(visionos);
195
202
209- (BOOL)switchCamera:(NSString * _Nullable)cameraId API_UNAVAILABLE(visionos);
210
216
222- (ZoomVideoSDKError)setVideoQualityPreference:(ZoomVideoSDKVideoPreferenceSetting * _Nullable)preferenceSetting;
223
224#pragma mark - OriginalAspec -
230
237- (BOOL)enableOriginalAspectRatio:(BOOL)enabled;
238
239#pragma mark - alpha channel -
246
252- (ZoomVideoSDKError)enableAlphaChannelMode:(BOOL)enable;
253
259
266
267#pragma mark - spotlight -
273- (ZoomVideoSDKError)spotLightVideo:(ZoomVideoSDKUser * _Nullable)user;
274
280- (ZoomVideoSDKError)unSpotLightVideo:(ZoomVideoSDKUser * _Nullable)user;
281
287
293
294#pragma mark - multi stream -
295
300- (BOOL)isMultiStreamSupported API_UNAVAILABLE(visionos);
301
309- (BOOL)enableMultiStreamVideo:(NSString * _Nullable)cameraDeviceID customDeviceName:(NSString * _Nullable)customDeviceName API_UNAVAILABLE(visionos);
310
316- (BOOL)disableMultiStreamVideo:(NSString * _Nullable)cameraDeviceID API_UNAVAILABLE(visionos);
317
323- (BOOL)muteMultiStreamVideo:(NSString * _Nullable)cameraDeviceID API_UNAVAILABLE(visionos);
324
330- (BOOL)unmuteMultiStreamVideo:(NSString * _Nullable)cameraDeviceID API_UNAVAILABLE(visionos);
331
337- (NSString * _Nullable)getDeviceIDByMyPipe:(ZoomVideoSDKRawDataPipe * _Nullable)pipe;
338
344- (NSString *_Nullable)getDeviceIDByMyCanvas:(ZoomVideoSDKVideoCanvas *_Nullable)canvas;
345
346@end
ZoomVideoSDKVideoPreferenceMode
Enumeration of video preference modes.
ZoomVideoSDKVideoResolution
Enumeration of the render resolution.
ZoomVideoSDKError
Enumeration of all the errors in the VideoSDK.
ZoomVideoSDKVideoAspect
Enumeration of the video aspect ratio.
Represents a camera device and its state.
BOOL isSelectedAsMultiCamera
Determines whether the camera is selected as a multiple video stream.
BOOL isRunningAsMultiCamera
Determines whether the camera is running as a multiple video stream.
NSString * deviceId
Gets the camera device ID.
BOOL isSelectDevice
Determines whether the camera is currently in use.
CGFloat maxZoomFactor
Gets the camera maximum zoom factor. Maximum supported is 10.
NSString * deviceName
Gets the camera name.
AVCaptureDeviceType deviceType
Gets the camera device type.
CGFloat videoZoomFactorUpscaleThreshold
Gets the maximum optical zoom factor.
AVCaptureDevicePosition position
Gets the camera position.
A class to manage the subscription and unsubscription of video or share raw data.
Zoom Video SDK user information.
The video canvas is the display area of the video streams on the user’s local device....
An interface to control video and manage cameras during a video session.
BOOL isMultiStreamSupported()
Determines whether the current device (phone, pad) supports the multi camera feature.
BOOL isOriginalAspectRatioEnabled()
Determines whether current aspect ratio is the original aspect ratio of video.
NSArray< ZoomVideoSDKUser * > *_Nullable getSpotlightedVideoUserList()
Gets spotlighted video user list.
BOOL canEnableAlphaChannelMode()
Determines whether alpha channel mode can be enabled.
ZoomVideoSDKError unSpotlightAllVideos()
Sets all user's video unspotlight.
NSArray< ZoomVideoSDKCameraDevice * > *_Nullable getCameraDeviceList()
Gets the camera device list.
ZoomVideoSDKError startVideo()
Starts sending local video data from the camera.
BOOL isDeviceSupportAlphaChannelMode()
Determines whether the device hardware capabilities are capable of supporting video alpha mode.
ZoomVideoSDKCameraDevice *_Nullable getSelectedCamera()
Gets the current camera device in use.
ZoomVideoSDKError stopVideo()
Stops sending local video data from the camera.
void switchCamera()
Switches to the next available camera.
BOOL isAlphaChannelModeEnabled()
Determines whether alpha channel mode is enabled.
BOOL isMyVideoMirrored()
Determines whether mirror my video is enabled.
Video preference interface.When setting custom modes, the maximum and minimum frame rates are provide...
NSUInteger maximumFrameRate
Maximum frame rate, default is 0.
NSUInteger minimumFrameRate
Minimum frame rate, default is 0.
ZoomVideoSDKVideoPreferenceMode mode
Preferred video mode.
BOOL on
Determines whether the camera is turned on.