Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDK.h
Go to the documentation of this file.
1
8
9#import <Foundation/Foundation.h>
10#import <ZMVideoSDK/ZMVideoSDKDelegate.h>
11#import <ZMVideoSDK/ZMVideoSDKAudioHelper.h>
12#import <ZMVideoSDK/ZMVideoSDKVideoHelper.h>
13#import <ZMVideoSDK/ZMVideoSDKUserHelper.h>
14#import <ZMVideoSDK/ZMVideoSDKShareHelper.h>
15#import <ZMVideoSDK/ZMVideoSDKLiveStreamHelper.h>
16#import <ZMVideoSDK/ZMVideoSDKChatHelper.h>
17#import <ZMVideoSDK/ZMVideoSDKSession.h>
18#import <ZMVideoSDK/ZMVideoSDKVideoSourceHelper.h>
19#import <ZMVideoSDK/ZMVideoSDKAudioSendRawdata.h>
20#import <ZMVideoSDK/ZMVideoSDKChatMessage.h>
21#import <ZMVideoSDK/ZMVideoSDKPasswordHandler.h>
22#import <ZMVideoSDK/ZMVideoSDKRecordingHelper.h>
23#import <ZMVideoSDK/ZMVideoSDKPhoneHelper.h>
24#import <ZMVideoSDK/ZMVideoSDKCmdChannel.h>
25#import <ZMVideoSDK/ZMVideoSDKAudioSettingHelper.h>
26#import <ZMVideoSDK/ZMVideoSDKNetworkConnectionHelper.h>
27#import <ZMVideoSDK/ZMVideoSDKRecordingConsentHandler.h>
28#import <ZMVideoSDK/ZMVideoSDKVideoSettingHelper.h>
29#import <ZMVideoSDK/ZMVideoSDKShareSettingHelper.h>
30#import <ZMVideoSDK/ZMVideoSDKVideoCanvas.h>
31#import <ZMVideoSDK/ZMVideoSDKCRCHelper.h>
32#import <ZMVideoSDK/ZMVideoSDKAnnotationHelper.h>
33#import <ZMVideoSDK/ZMVideoSDKLiveTranscriptionHelper.h>
34#import <ZMVideoSDK/ZMVideoSDKVoiceInterpretationHelper.h>
35#import <ZMVideoSDK/ZMVideoSDKSubSessionHelper.h>
36#import <ZMVideoSDK/ZMVideoSDKBroadcastStreamingController.h>
37#import <ZMVideoSDK/ZMVideoSDKBroadcastStreamingViewer.h>
38#import <ZMVideoSDK/ZMVideoSDKRTMSHelper.h>
39
40NS_ASSUME_NONNULL_BEGIN
42
47@interface ZMVideoSDKInitParams : NSObject
51@property (nonatomic, retain, readwrite, nullable) NSString* domain;
52
56@property (nonatomic, retain, readwrite, nullable) NSString* logFilePrefix;
57
61@property (nonatomic, assign, readwrite) BOOL enableLog;
62
66@property (nonatomic, assign, readwrite) ZMVideoSDKRawDataMemoryMode audioRawDataMemoryMode;
67
71@property (nonatomic, assign, readwrite) ZMVideoSDKRawDataMemoryMode videoRawDataMemoryMode;
72
76@property (nonatomic, assign, readwrite) ZMVideoSDKRawDataMemoryMode shareRawDataMemoryMode;
77
81@property (retain, nonatomic, nullable) ZMVideoSDKExtendParams *extendParams;
82@end
83
88@interface ZMVideoSDKExtendParams : NSObject
93@property (nonatomic, copy, nullable) NSString *speakerTestFilePath;
94
98@property (nonatomic, assign, readwrite) int wrapperType;
99
103@property (nonatomic, assign, readwrite) ZMVideoSDKPreferVideoResolution preferVideoResolution;
104
108@property (nonatomic, assign, readwrite) BOOL disableKeychainAccess;
109@end
110
111
116@interface ZMVideoSDKVideoOption : NSObject
120@property (nonatomic, assign, readwrite) BOOL localVideoOn;
121@end
122
127@interface ZMVideoSDKAudioOption : NSObject
131@property (nonatomic, assign, readwrite) BOOL connect;
132
136@property (nonatomic, assign, readwrite) BOOL mute;
137
141@property (nonatomic, assign, readwrite) BOOL isMyVoiceInMix;
142
146@property (nonatomic, assign, readwrite) BOOL autoAdjustSpeakerVolume;
147
148@end
149
154@interface ZMVideoSDKSessionContext : NSObject
155
159@property (nonatomic, retain, readwrite, nullable) NSString* sessionName;
160
164@property (nonatomic, retain, readwrite, nullable) NSString* sessionPassword;
165
169@property (nonatomic, retain, readwrite, nullable) NSString* userName;
170
174@property (nonatomic, retain, readwrite, nullable) NSString* token;
175
179@property (nonatomic, retain, readwrite, nullable) ZMVideoSDKVideoOption* videoOption;
180
184@property (nonatomic, retain, readwrite, nullable) ZMVideoSDKAudioOption* audioOption;
185
189@property (nonatomic, assign, readwrite) id<ZMVideoSDKVideoSourcePreProcessor> preProcessor;
193@property (nonatomic, assign, readwrite) id<ZMVideoSDKVideoSource> externalVideoSource;
197@property (nonatomic, assign, readwrite) id<ZMVideoSDKVirtualAudioMic> virtualAudioMic;
201@property (nonatomic, assign, readwrite) id<ZMVideoSDKVirtualAudioSpeaker> virtualAudioSpeaker;
207@property (nonatomic, assign, readwrite) unsigned int sessionIdleTimeoutMins;
211@property (nonatomic, assign, readwrite) BOOL autoLoadMutliStream;
212@end
213
214
219@interface ZMVideoSDK : NSObject
220
226
233
241
246- (void)addListener:(id <ZMVideoSDKDelegate>)listener;
247
252- (void)removeListener:(id <ZMVideoSDKDelegate>)listener;
253
259- (ZMVideoSDKSession* _Nullable)joinSession:(ZMVideoSDKSessionContext*)params;
260
266- (ZMVideoSDKErrors)leaveSession:(BOOL)end;
267
273
279
284- (NSString* _Nullable)getSDKVersion;
285
290- (NSString* _Nullable)exportLog;
291
297
303
309
315
321
327
333
339
345
351
357
363
369
375
381
387
393
399
405
412
418
424
430@end
431NS_ASSUME_NONNULL_END
ZMVideoSDKRawDataMemoryMode
Enumeration of memory modes for raw data handling.
ZMVideoSDKErrors
Enumerates all errors in the VideoSDK.
ZMVideoSDKPreferVideoResolution
Enumeration of preferred video resolution in Zoom Video SDK.
Interface for testing audio input and output devices.
Provides methods for managing audio in Zoom Video SDK sessions.
Audio configuration options for joining a session.
Definition ZMVideoSDK.h:128
BOOL autoAdjustSpeakerVolume
Whether to automatically adjust the speaker's volume or not. If YES, this automaticallies adjust the ...
Definition ZMVideoSDK.h:146
BOOL connect
Whether to connect local audio or not.
Definition ZMVideoSDK.h:131
BOOL isMyVoiceInMix
Determines whether my voice is in the mixed audio raw data or not. YES to include....
Definition ZMVideoSDK.h:141
BOOL mute
Whether to mute audio or not.
Definition ZMVideoSDK.h:136
Interface for managing audio settings in Zoom Video SDK.
Helper interface for Cloud Room Connector (CRC) features.
Chat helper interface.
The command channel allows users to send commands or data (such as plain text or a binary encoded int...
Extended configuration parameters for Zoom Video SDK.
Definition ZMVideoSDK.h:89
ZMVideoSDKPreferVideoResolution preferVideoResolution
Prefer video resolution.
Definition ZMVideoSDK.h:103
NSString * speakerTestFilePath
Specify a file path for speaker test.
Definition ZMVideoSDK.h:93
BOOL disableKeychainAccess
Disable access keychain.
Definition ZMVideoSDK.h:108
int wrapperType
Wrapper type.
Definition ZMVideoSDK.h:98
Zoom Video SDK API manager. Main singleton object that controls the video session creation,...
Definition ZMVideoSDK.h:220
ZMVideoSDKShareSettingHelper * getShareSettingHelper()
Gets share setting helper object.
ZMVideoSDKErrors cleanUp()
Clean up the Zoom Video SDK.
ZMVideoSDKAudioDeviceTestHelper * getAudioDeviceTestHelper()
Returns an instance to manage audio device test during or before a video SDK session.
ZMVideoSDKNetworkConnectionHelper * getNetworkConnectionHelper()
Returns an instance to manage network connection during or before a video SDK session.
NSString *_Nullable getSDKVersion()
Returns Zoom SDK internal version.
ZMVideoSDKRTMSHelper *_Nullable getRealTimeMediaStreamsHelper()
Returns an instance to manage RTMS (Real-Time Media Streams) during a video SDK session.
ZMVideoSDKErrors cleanAllExportedLogs()
Cleans all exported logs.
ZMVideoSDKCRCHelper * getCRCHelper()
Gets crc helper object.
BOOL isInSession()
Checks if there is an active session between participants.
ZMVideoSDKUserHelper * getUserHelper()
Returns an instance to manage users present in a video SDK session.
ZMVideoSDKVideoSettingHelper * getVideoSettingHelper()
Gets video setting helper object.
ZMVideoSDKChatHelper * getChatHelper()
Returns an instance to send and receive chat messages within video SDK session participants.
ZMVideoSDKSession *_Nullable getSessionInfo()
Returns the current session information.
NSString *_Nullable exportLog()
Exports a log file to local disk.
ZMVideoSDKLiveTranscriptionHelper * getLiveTranscriptionHelper()
Gets live transcription helper object.
ZMVideoSDKSubSessionHelper *_Nullable getSubSessionHelper()
Gets the subsession helper object.
ZMVideoSDKBroadcastStreamingViewer *_Nullable getBroadcastStreamingViewer()
Gets the broadcast streaming viewer object.
ZMVideoSDK * sharedVideoSDK()
Returns ZMVideoSDK instance.
ZMVideoSDKAudioSettingHelper * getAudioSettingHelper()
Returns an instance to manage audio setting during or before a video SDK session.
ZMVideoSDKRecordingHelper * getRecordingHelper()
Returns an instance to manage cloud recordings during a video SDK session.
ZMVideoSDKVideoHelper * getVideoHelper()
Returns an instance to manage cameras and video during a video SDK session.
ZMVideoSDKPhoneHelper * getPhoneHelper()
Returns an instance to manage phone invitations during a video SDK session.
ZMVideoSDKVoiceInterpretationHelper * getVoiceInterpretationHelper()
Gets voice interpretation helper object.
ZMVideoSDKShareHelper * getShareHelper()
Returns an instance to manage screen sharing during a video SDK session.
ZMVideoSDKAudioHelper * getAudioHelper()
Returns an instance to manage audio controls related to the current video SDK session.
ZMVideoSDKIncomingLiveStreamHelper * getIncomingLiveStreamHelper()
Gets incoming live stream helper object.
ZMVideoSDKLiveStreamHelper * getLiveStreamHelper()
Returns an instance to manage live streaming during a video SDK session.
ZMVideoSDKBroadcastStreamingController *_Nullable getBroadcastStreamingController()
Gets the broadcast streaming controller object.
ZMVideoSDKCmdChannel * getCmdChannel()
Returns an instance to use command channel features during a video SDK session.
Interface for managing incoming live streams.
Initialization parameters for Zoom Video SDK.
Definition ZMVideoSDK.h:48
ZMVideoSDKExtendParams * extendParams
Extended parameters.
Definition ZMVideoSDK.h:81
NSString * logFilePrefix
Prefix of log file name.
Definition ZMVideoSDK.h:56
ZMVideoSDKRawDataMemoryMode shareRawDataMemoryMode
Sets share raw data memory mode.
Definition ZMVideoSDK.h:76
BOOL enableLog
Sets whether to enable default log of which the capacity is less than 5M.
Definition ZMVideoSDK.h:61
ZMVideoSDKRawDataMemoryMode audioRawDataMemoryMode
Sets audio raw data memory mode.
Definition ZMVideoSDK.h:66
ZMVideoSDKRawDataMemoryMode videoRawDataMemoryMode
Sets video raw data memory mode.
Definition ZMVideoSDK.h:71
NSString * domain
Sets client domain of ZOOM Video SDK.
Definition ZMVideoSDK.h:51
Helper class for managing outgoing live stream.
Provides methods for controlling and interacting with live transcription.
A helper class for configuring proxy settings for SDK network connections.
Provides methods for managing phone-related session features such as dial-in and phone invites.
Helper class for managing real-time media streams.
Helper class for using cloud recording in the session.
Session context information for a Zoom Video SDK session.
Definition ZMVideoSDK.h:155
id< ZMVideoSDKVideoSourcePreProcessor > preProcessor
Sets delegate. (optional).
Definition ZMVideoSDK.h:189
ZMVideoSDKVideoOption * videoOption
Video option.
Definition ZMVideoSDK.h:179
id< ZMVideoSDKVirtualAudioMic > virtualAudioMic
Sets virtual audio delegate (optional).
Definition ZMVideoSDK.h:197
NSString * userName
User name(required).
Definition ZMVideoSDK.h:169
NSString * sessionName
Session name.
Definition ZMVideoSDK.h:159
id< ZMVideoSDKVideoSource > externalVideoSource
Sets delegate (optional).
Definition ZMVideoSDK.h:193
NSString * sessionPassword
Session password (optional).
Definition ZMVideoSDK.h:164
NSString * token
JWT token to join session.
Definition ZMVideoSDK.h:174
unsigned int sessionIdleTimeoutMins
[Optional] The amount of time in minutes after which an idle session ends.
Definition ZMVideoSDK.h:207
id< ZMVideoSDKVirtualAudioSpeaker > virtualAudioSpeaker
Sets virtual audio speaker delegate (optional).
Definition ZMVideoSDK.h:201
ZMVideoSDKAudioOption * audioOption
Audio option.
Definition ZMVideoSDK.h:184
BOOL autoLoadMutliStream
Whether to automatically load multi streams when entering a session, default value is YES,...
Definition ZMVideoSDK.h:211
Provides access to session-level information and operations.
Main helper class managing sharing.
Helper class to manage share-related settings.
Helper class for managing subsessions.
User control interface.
An interface to control video and manage cameras during a video session.
Video configuration options for joining a session.
Definition ZMVideoSDK.h:117
BOOL localVideoOn
Sets local video on or off.
Definition ZMVideoSDK.h:120
Provides settings-related functions to configure video enhancement options.
Provides methods for controlling and interacting with voice interpretation.