Video SDK for iOS API Reference
Loading...
Searching...
No Matches
ZoomVideoSDKVideoHelper.h
Go to the documentation of this file.
1//
2// ZoomVideoSDKVideoHelper.h
3// ZoomVideoSDK
4//
5// Created by Zoom Video Communications on 2018/12/6.
6// Copyright © Zoom Video Communications, Inc. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <AVFoundation/AVFoundation.h>
11#import <ZoomVideoSDK/ZoomVideoSDKConstants.h>
12#import <ZoomVideoSDK/ZoomVideoSDKRawDataPipe.h>
13
14@protocol ZoomVideoSDKRawDataPipeDelegate;
17
22@interface ZoomVideoSDKVideoStatus : NSObject
26@property (nonatomic, assign) BOOL on;
27
28@end
29
30
36
40@property (nonatomic, assign) ZoomVideoSDKVideoPreferenceMode mode;
41
46@property (nonatomic, assign) NSUInteger minimumFrameRate;
47
52@property (nonatomic, assign) NSUInteger maximumFrameRate;
53
54@end
55
60@interface ZoomVideoSDKCameraDevice : NSObject
64@property (nonatomic, readonly, nullable, copy) NSString* deviceId;
68@property (nonatomic, readonly, nullable, copy) NSString* deviceName;
72@property (nonatomic, readonly, assign) BOOL isSelectDevice;
76@property (nonatomic, readonly, assign) AVCaptureDevicePosition position;
80@property (nonatomic, readonly, nullable, copy) AVCaptureDeviceType deviceType;
84@property (nonatomic, readonly, assign) CGFloat maxZoomFactor;
88@property (nonatomic, readonly, assign) CGFloat videoZoomFactorUpscaleThreshold;
92@property (nonatomic, readonly, assign) BOOL isSelectedAsMultiCamera;
96@property (nonatomic, readonly, assign) BOOL isRunningAsMultiCamera;
97
98@end
99
104@interface ZoomVideoSDKVideoHelper : NSObject
105
111- (ZoomVideoSDKError)startVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate>_Nullable)delegate DEPRECATED_MSG_ATTRIBUTE("startVideoPreview:resolution:");
112
119- (ZoomVideoSDKError)startVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate>_Nullable)delegate resolution:(ZoomVideoSDKVideoResolution)resolution;
120
126- (ZoomVideoSDKError)stopVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate> _Nullable)delegate;
127
134- (ZoomVideoSDKError)startVideoCanvasPreview:(UIView * _Nullable)view andAspectMode:(ZoomVideoSDKVideoAspect)aspect;
135
141- (ZoomVideoSDKError)stopVideoCanvasPreview:(UIView * _Nullable)view;
142
147- (ZoomVideoSDKError)startVideo;
148
153- (ZoomVideoSDKError)stopVideo;
154
161- (BOOL)rotateMyVideo:(UIDeviceOrientation)rotation;
162
169- (ZoomVideoSDKError)mirrorMyVideo:(BOOL)enable;
170
176- (BOOL)isMyVideoMirrored;
177
181- (void)switchCamera;
182
188- (NSArray <ZoomVideoSDKCameraDevice *>* _Nullable)getCameraDeviceList;
189
195- (BOOL)switchCamera:(NSString * _Nullable)cameraId;
196
201- (ZoomVideoSDKCameraDevice * _Nullable)getSelectedCamera;
202
208- (ZoomVideoSDKError)setVideoQualityPreference:(ZoomVideoSDKVideoPreferenceSetting * _Nullable)preferenceSetting;
209
210#pragma mark - OriginalAspec -
215- (BOOL)isOriginalAspectRatioEnabled;
216
223- (BOOL)enableOriginalAspectRatio:(BOOL)enabled;
224
225#pragma mark - alpha channel -
231- (BOOL)canEnableAlphaChannelMode;
232
238- (ZoomVideoSDKError)enableAlphaChannelMode:(BOOL)enable;
239
244- (BOOL)isAlphaChannelModeEnabled;
245
251- (BOOL)isDeviceSupportAlphaChannelMode;
252
253#pragma mark - spotlight -
259- (ZoomVideoSDKError)spotLightVideo:(ZoomVideoSDKUser * _Nullable)user;
260
266- (ZoomVideoSDKError)unSpotLightVideo:(ZoomVideoSDKUser * _Nullable)user;
267
272- (ZoomVideoSDKError)unSpotlightAllVideos;
273
278- (NSArray <ZoomVideoSDKUser *>* _Nullable)getSpotlightedVideoUserList;
279
280#pragma mark - multi stream -
281
286- (BOOL)isMultiStreamSupported;
287
295- (BOOL)enableMultiStreamVideo:(NSString * _Nullable)cameraDeviceID customDeviceName:(NSString * _Nullable)customDeviceName;
296
302- (BOOL)disableMultiStreamVideo:(NSString * _Nullable)cameraDeviceID;
303
309- (BOOL)muteMultiStreamVideo:(NSString * _Nullable)cameraDeviceID;
310
316- (BOOL)unmuteMultiStreamVideo:(NSString * _Nullable)cameraDeviceID;
317
323- (NSString * _Nullable)getDeviceIDByMyPipe:(ZoomVideoSDKRawDataPipe * _Nullable)pipe;
324
330- (NSString *_Nullable)getDeviceIDByMyCanvas:(ZoomVideoSDKVideoCanvas *_Nullable)canvas;
331
332@end
ZoomVideoSDKVideoPreferenceMode
Enumerates the video preference modes.
ZoomVideoSDKVideoResolution
Enumeration of render resolution.
ZoomVideoSDKError
Enumerates all errors in the VideoSDK.
ZoomVideoSDKVideoAspect
Enumeration of the video aspect ratio.
Represents a camera device and its state.
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.
Video preference interface.When setting custom modes, the maximum and minimum frame rates are provide...
BOOL on
if the camera is turned on. YES : camera turned on, NO : camera turned off.