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/ZMVideoSDKSubSessionHelper.h>
35#import <ZMVideoSDK/ZMVideoSDKBroadcastStreamingController.h>
36#import <ZMVideoSDK/ZMVideoSDKBroadcastStreamingViewer.h>
37#import <ZMVideoSDK/ZMVideoSDKRTMSHelper.h>
38
39NS_ASSUME_NONNULL_BEGIN
41
46@interface ZMVideoSDKInitParams : NSObject
50@property (nonatomic, retain, readwrite, nullable) NSString* domain;
51
55@property (nonatomic, retain, readwrite, nullable) NSString* logFilePrefix;
56
60@property (nonatomic, assign, readwrite) BOOL enableLog;
61
65@property (nonatomic, assign, readwrite) ZMVideoSDKRawDataMemoryMode audioRawDataMemoryMode;
66
70@property (nonatomic, assign, readwrite) ZMVideoSDKRawDataMemoryMode videoRawDataMemoryMode;
71
75@property (nonatomic, assign, readwrite) ZMVideoSDKRawDataMemoryMode shareRawDataMemoryMode;
76
80@property (retain, nonatomic, nullable) ZMVideoSDKExtendParams *extendParams;
81@end
82
87@interface ZMVideoSDKExtendParams : NSObject
92@property (nonatomic, copy, nullable) NSString *speakerTestFilePath;
93
97@property (nonatomic, assign, readwrite) int wrapperType;
98
102@property (nonatomic, assign, readwrite) ZMVideoSDKPreferVideoResolution preferVideoResolution;
103
107@property (nonatomic, assign, readwrite) BOOL disableKeychainAccess;
108@end
109
110
115@interface ZMVideoSDKVideoOption : NSObject
119@property (nonatomic, assign, readwrite) BOOL localVideoOn;
120@end
121
126@interface ZMVideoSDKAudioOption : NSObject
130@property (nonatomic, assign, readwrite) BOOL connect;
131
135@property (nonatomic, assign, readwrite) BOOL mute;
136
140@property (nonatomic, assign, readwrite) BOOL isMyVoiceInMix;
141
145@property (nonatomic, assign, readwrite) BOOL autoAdjustSpeakerVolume;
146
147@end
148
153@interface ZMVideoSDKSessionContext : NSObject
154
158@property (nonatomic, retain, readwrite, nullable) NSString* sessionName;
159
163@property (nonatomic, retain, readwrite, nullable) NSString* sessionPassword;
164
168@property (nonatomic, retain, readwrite, nullable) NSString* userName;
169
173@property (nonatomic, retain, readwrite, nullable) NSString* token;
174
178@property (nonatomic, retain, readwrite, nullable) ZMVideoSDKVideoOption* videoOption;
179
183@property (nonatomic, retain, readwrite, nullable) ZMVideoSDKAudioOption* audioOption;
184
188@property (nonatomic, assign, readwrite) id<ZMVideoSDKVideoSourcePreProcessor> preProcessor;
192@property (nonatomic, assign, readwrite) id<ZMVideoSDKVideoSource> externalVideoSource;
196@property (nonatomic, assign, readwrite) id<ZMVideoSDKVirtualAudioMic> virtualAudioMic;
200@property (nonatomic, assign, readwrite) id<ZMVideoSDKVirtualAudioSpeaker> virtualAudioSpeaker;
206@property (nonatomic, assign, readwrite) unsigned int sessionIdleTimeoutMins;
210@property (nonatomic, assign, readwrite) BOOL autoLoadMutliStream;
211@end
212
213
218@interface ZMVideoSDK : NSObject
219
225
232
236- (void)cleanUp;
237
242- (void)addListener:(id <ZMVideoSDKDelegate>)listener;
243
248- (void)removeListener:(id <ZMVideoSDKDelegate>)listener;
249
255- (ZMVideoSDKSession* _Nullable)joinSession:(ZMVideoSDKSessionContext*)params;
256
262- (ZMVideoSDKErrors)leaveSession:(BOOL)end;
263
269
275
280- (NSString* _Nullable)getSDKVersion;
281
286- (NSString* _Nullable)exportLog;
287
293
299
305
311
317
323
329
335
341
347
353
359
365
371
377
383
389
395
402
408
414
420@end
421NS_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:127
BOOL autoAdjustSpeakerVolume
Whether to automatically adjust the speaker's volume or not. If YES, this automaticallies adjust the ...
Definition ZMVideoSDK.h:145
BOOL connect
Whether to connect local audio or not.
Definition ZMVideoSDK.h:130
BOOL isMyVoiceInMix
Determines whether my voice is in the mixed audio raw data or not. YES to include....
Definition ZMVideoSDK.h:140
BOOL mute
Whether to mute audio or not.
Definition ZMVideoSDK.h:135
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:88
ZMVideoSDKPreferVideoResolution preferVideoResolution
Prefer video resolution.
Definition ZMVideoSDK.h:102
NSString * speakerTestFilePath
Specify a file path for speaker test.
Definition ZMVideoSDK.h:92
BOOL disableKeychainAccess
Disable access keychain.
Definition ZMVideoSDK.h:107
int wrapperType
Wrapper type.
Definition ZMVideoSDK.h:97
Zoom Video SDK API manager. Main singleton object that controls the video session creation,...
Definition ZMVideoSDK.h:219
ZMVideoSDKShareSettingHelper * getShareSettingHelper()
Gets share setting helper object.
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.
void cleanUp()
Clean up Zoom Video SDK.
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.
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:47
ZMVideoSDKExtendParams * extendParams
Extended parameters.
Definition ZMVideoSDK.h:80
NSString * logFilePrefix
Prefix of log file name.
Definition ZMVideoSDK.h:55
ZMVideoSDKRawDataMemoryMode shareRawDataMemoryMode
Sets share raw data memory mode.
Definition ZMVideoSDK.h:75
BOOL enableLog
Sets whether to enable default log of which the capacity is less than 5M.
Definition ZMVideoSDK.h:60
ZMVideoSDKRawDataMemoryMode audioRawDataMemoryMode
Sets audio raw data memory mode.
Definition ZMVideoSDK.h:65
ZMVideoSDKRawDataMemoryMode videoRawDataMemoryMode
Sets video raw data memory mode.
Definition ZMVideoSDK.h:70
NSString * domain
Sets client domain of ZOOM Video SDK.
Definition ZMVideoSDK.h:50
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:154
id< ZMVideoSDKVideoSourcePreProcessor > preProcessor
Sets delegate. (optional).
Definition ZMVideoSDK.h:188
ZMVideoSDKVideoOption * videoOption
Video option.
Definition ZMVideoSDK.h:178
id< ZMVideoSDKVirtualAudioMic > virtualAudioMic
Sets virtual audio delegate (optional).
Definition ZMVideoSDK.h:196
NSString * userName
User name(required).
Definition ZMVideoSDK.h:168
NSString * sessionName
Session name.
Definition ZMVideoSDK.h:158
id< ZMVideoSDKVideoSource > externalVideoSource
Sets delegate (optional).
Definition ZMVideoSDK.h:192
NSString * sessionPassword
Session password (optional).
Definition ZMVideoSDK.h:163
NSString * token
JWT token to join session.
Definition ZMVideoSDK.h:173
unsigned int sessionIdleTimeoutMins
[Optional] The amount of time in minutes after which an idle session ends.
Definition ZMVideoSDK.h:206
id< ZMVideoSDKVirtualAudioSpeaker > virtualAudioSpeaker
Sets virtual audio speaker delegate (optional).
Definition ZMVideoSDK.h:200
ZMVideoSDKAudioOption * audioOption
Audio option.
Definition ZMVideoSDK.h:183
BOOL autoLoadMutliStream
Whether to automatically load multi streams when entering a session, default value is YES,...
Definition ZMVideoSDK.h:210
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:116
BOOL localVideoOn
Sets local video on or off.
Definition ZMVideoSDK.h:119
Provides settings-related functions to configure video enhancement options.