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
109- (ZoomVideoSDKError)startVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate>_Nullable)delegate DEPRECATED_MSG_ATTRIBUTE("startVideoPreview:resolution:");
110
117- (ZoomVideoSDKError)startVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate>_Nullable)delegate resolution:(ZoomVideoSDKVideoResolution)resolution;
118
124- (ZoomVideoSDKError)stopVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate> _Nullable)delegate;
125
132- (ZoomVideoSDKError)startVideoCanvasPreview:(UIView * _Nullable)view andAspectMode:(ZoomVideoSDKVideoAspect)aspect;
133
139- (ZoomVideoSDKError)stopVideoCanvasPreview:(UIView * _Nullable)view;
140
146
152
159- (BOOL)rotateMyVideo:(UIDeviceOrientation)rotation;
160
167- (ZoomVideoSDKError)mirrorMyVideo:(BOOL)enable;
168
175
179- (void)switchCamera API_UNAVAILABLE(visionos);
180
187
193- (BOOL)switchCamera:(NSString * _Nullable)cameraId API_UNAVAILABLE(visionos);
194
200
206- (ZoomVideoSDKError)setVideoQualityPreference:(ZoomVideoSDKVideoPreferenceSetting * _Nullable)preferenceSetting;
207
208#pragma mark - OriginalAspec -
214
221- (BOOL)enableOriginalAspectRatio:(BOOL)enabled;
222
223#pragma mark - alpha channel -
230
236- (ZoomVideoSDKError)enableAlphaChannelMode:(BOOL)enable;
237
243
250
251#pragma mark - spotlight -
257- (ZoomVideoSDKError)spotLightVideo:(ZoomVideoSDKUser * _Nullable)user;
258
264- (ZoomVideoSDKError)unSpotLightVideo:(ZoomVideoSDKUser * _Nullable)user;
265
271
277
278#pragma mark - multi stream -
279
284- (BOOL)isMultiStreamSupported API_UNAVAILABLE(visionos);
285
293- (BOOL)enableMultiStreamVideo:(NSString * _Nullable)cameraDeviceID customDeviceName:(NSString * _Nullable)customDeviceName API_UNAVAILABLE(visionos);
294
300- (BOOL)disableMultiStreamVideo:(NSString * _Nullable)cameraDeviceID API_UNAVAILABLE(visionos);
301
307- (BOOL)muteMultiStreamVideo:(NSString * _Nullable)cameraDeviceID API_UNAVAILABLE(visionos);
308
314- (BOOL)unmuteMultiStreamVideo:(NSString * _Nullable)cameraDeviceID API_UNAVAILABLE(visionos);
315
321- (NSString * _Nullable)getDeviceIDByMyPipe:(ZoomVideoSDKRawDataPipe * _Nullable)pipe;
322
328- (NSString *_Nullable)getDeviceIDByMyCanvas:(ZoomVideoSDKVideoCanvas *_Nullable)canvas;
329
330@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.