Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKDelegate.h
Go to the documentation of this file.
1
7
8#import <AppKit/AppKit.h>
9#import <ZMVideoSDK/ZMVideoSDKDef.h>
10
11NS_ASSUME_NONNULL_BEGIN
19@class ZMVideoSDKUser;
50@protocol ZMVideoSDKDelegate <NSObject>
51@optional
52
57
62- (void)onSessionLeave:(ZMVideoSDKSessionLeaveReason)reason;
63
69- (void)onError:(ZMVideoSDKErrors)ErrorType detail:(int)details;
70
76- (void)onUserJoin:(ZMVideoSDKUserHelper* _Nonnull)userHelper userList:(NSArray<ZMVideoSDKUser *>* _Nullable)userArray;
77
83- (void)onUserLeave:(ZMVideoSDKUserHelper* _Nonnull)userHelper userList:(NSArray<ZMVideoSDKUser *>* _Nullable)userArray;
84
89
95- (void)onHoldUserJoin:(ZMVideoSDKOnHoldHelper* _Nullable)helper userList:(NSArray<ZMVideoSDKOnHoldUser*>* _Nullable)userArray;
96
102- (void)onHoldUserLeave:(ZMVideoSDKOnHoldHelper* _Nullable)helper userList:(NSArray<ZMVideoSDKOnHoldUser*>* _Nullable)userArray;
103
109- (void)onUserVideoStatusChanged:(ZMVideoSDKVideoHelper* _Nonnull)videoHelper userList:(NSArray<ZMVideoSDKUser *>* _Nullable)userArray;
110
116- (void)onUserAudioStatusChanged:(ZMVideoSDKAudioHelper* _Nonnull)audioHelper userList:(NSArray<ZMVideoSDKUser *>* _Nullable)userArray;
117
125- (void)onUserShareStatusChanged:(ZMVideoSDKShareHelper* _Nonnull)shareHelper user:(ZMVideoSDKUser* _Nullable)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
126
136- (void)onShareContentSizeChanged:(ZMVideoSDKShareHelper* _Nonnull)shareHelper user:(ZMVideoSDKUser* _Nullable)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
137
146- (void)onShareContentChanged:(ZMVideoSDKShareHelper* _Nonnull)shareHelper user:(ZMVideoSDKUser *)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
147
156- (void)onUnsharingWindowsChanged:(NSArray<NSNumber*>*)windowsList shareHelper:(ZMVideoSDKShareHelper* _Nonnull)shareHelper user:(ZMVideoSDKUser *)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
157
166- (void)onSharingProcessWindowsStateChanged:(BOOL)isAnyWindowSharing shareHelper:(ZMVideoSDKShareHelper* _Nonnull)shareHelper user:(ZMVideoSDKUser *)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
167
176- (void)onSharingActiveMonitorChanged:(NSArray<NSNumber*>*)monitorIDs shareHelper:(ZMVideoSDKShareHelper* _Nonnull)shareHelper user:(ZMVideoSDKUser *)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
177
183- (void)onFailedToStartShare:(ZMVideoSDKShareHelper* _Nonnull)shareHelper user:(ZMVideoSDKUser* _Nullable)user;
184
189- (void)onShareSettingChanged:(ZMVideoSDKShareSetting)setting;
190
196- (void)onLiveStreamStatusChanged:(ZMVideoSDKLiveStreamHelper* _Nonnull)liveStreamHelper liveStreamStatus:(ZMVideoSDKLiveStreamStatus)status;
197
203- (void)onChatNewMessageNotify:(ZMVideoSDKChatHelper* _Nonnull)chatHelper chatMessage:(ZMVideoSDKChatMessage* _Nullable)chatMessage;
204
210- (void)onUserHostChanged:(ZMVideoSDKUserHelper* _Nonnull)userHelper user:(ZMVideoSDKUser* _Nullable)user;
211
217- (void)onUserActiveAudioChanged:(ZMVideoSDKAudioHelper* _Nonnull)audioHelper userList:(NSArray<ZMVideoSDKUser *>* _Nullable)userArray;
218
223- (void)onSessionNeedPassword:(ZMVideoSDKPasswordHandler* _Nonnull)handle;
224
229- (void)onSessionPasswordWrong:(ZMVideoSDKPasswordHandler* _Nonnull)handle;
230
235- (void)onMixedAudioRawDataReceived:(ZMVideoSDKAudioRawData* _Nonnull)data;
236
242- (void)onOneWayAudioRawDataReceived:(ZMVideoSDKAudioRawData* _Nonnull)data user:(ZMVideoSDKUser* _Nullable)user;
243
248- (void)onUserManagerChanged:(ZMVideoSDKUser* _Nullable)user;
249
254- (void)onUserNameChanged:(ZMVideoSDKUser* _Nullable)user;
255
261- (void)onUserFailoverStatusChanged:(ZMVideoSDKUser* _Nullable)user inFailover:(BOOL)inFailover;
262
267- (void)onSharedAudioRawDataReceived:(ZMVideoSDKAudioRawData* _Nullable)data;
268
274- (void)onCloudRecordingStatus:(ZMRecordingStatus)status recordingConsentHandler:(ZMVideoSDKRecordingConsentHandler * _Nullable)handler;
275
280- (void)onUserRecordingConsent:(ZMVideoSDKUser * _Nullable)user;
286- (void)onCommandReceived:(NSString* _Nullable)commandContent senderUser:(ZMVideoSDKUser* _Nullable)user;
287
293- (void)onCommandReceivedFromCrossSession:(NSString* _Nullable)commandContent
294 sender:(ZMVideoSDKSubSessionUser* _Nullable)sender;
295
302- (void)onCameraControlRequestResult:(ZMVideoSDKUser* _Nullable)user approved:(BOOL)isApproved;
303
311- (void)onCameraControlRequestReceived:(ZMVideoSDKUser* _Nullable)user cameraControlRequestType:(ZMVideoSDKCameraControlRequestType)requestType requestHandler:(ZMVideoSDKCameraControlRequestHandler* _Nullable)cameraControlRequestHandler;
312
317- (void)onCommandChannelConnectResult:(BOOL)isSuccess;
318
323
329- (void)onInviteByPhoneStatus:(ZMPhoneStatus)status reason:(ZMPhoneFailedReason)reason;
330
336- (void)onCalloutJoinSuccess:(ZMVideoSDKUser * _Nullable)user phoneNumber:(NSString * _Nullable)phoneNumber;
337
344- (void)onMultiCameraStreamStatusChanged:(ZMVideoSDKMultiCameraStreamStatus)status user:(ZMVideoSDKUser * _Nullable)user rawDataPipe:(ZMVideoSDKRawDataPipe * _Nullable)videoPipe;
345
352- (void)onAudioLevelChanged:(unsigned int)level audioSharing:(BOOL)bAudioSharing user:(ZMVideoSDKUser * _Nullable)user;
353
359- (void)onMicSpeakerVolumeChanged:(unsigned int)micVolume speakerVolume:(unsigned int)speakerVolume;
360
366- (void)onAudioDeviceStatusChanged:(ZMVideoSDKAudioDeviceType)type status:(ZMVideoSDKAudioDeviceStatus)status;
367
372- (void)onTestMicStatusChanged:(ZMVideoSDKMicTestStatus)status;
373
378
383
389- (void)onLiveTranscriptionStatus:(ZMVideoSDKLiveTranscriptionStatus)status;
390
395- (void)onLiveTranscriptionMsgInfoReceived:(ZMVideoSDKLiveTranscriptionMessageInfo* _Nullable)messageInfo;
396
401- (void)onOriginalLanguageMsgReceived:(ZMVideoSDKLiveTranscriptionMessageInfo* _Nullable)messageInfo;
402
408- (void)onLiveTranscriptionMsgError:(ZMVideoSDKLiveTranscriptionLanguage* _Nullable)spokenLanguage transcriptLanguage:(ZMVideoSDKLiveTranscriptionLanguage* _Nullable)transcriptLanguage;
409
414- (void)onSpokenLanguageChanged:(ZMVideoSDKLiveTranscriptionLanguage* _Nullable)spokenLanguage;
415
420
427- (void)onChatMsgDeleteNotification:(ZMVideoSDKChatHelper* _Nonnull)chatHelper messageID:(NSString * _Nullable)msgID deleteBy:(ZMVideoSDKChatMessageDeleteType)type;
428
434- (void)onChatPrivilegeChanged:(ZMVideoSDKChatHelper* _Nonnull)chatHelper chatPrivilegeType:(ZMVideoSDKChatPrivilegeType)privilege;
435
440
445- (void)onProxySettingNotification:(ZMVideoSDKProxySettingHandler * _Nonnull)handler;
446
451- (void)onSSLCertVerifiedFailNotification:(ZMVideoSDKSSLCertificateInfo * _Nonnull)info;
452
459- (void)onUserNetworkStatusChanged:(ZMVideoSDKDataType)type level:(ZMVideoSDKNetworkStatus)level user:(ZMVideoSDKUser *)user;
460
466- (void)onUserOverallNetworkStatusChanged:(ZMVideoSDKNetworkStatus)level user:(ZMVideoSDKUser *)user;
467
474- (void)onQOSStatisticsReceived:(ZMVideoSDKQOSStatistics * _Nonnull)statistics user:(ZMVideoSDKUser * _Nullable)user;
475
480- (void)onCallCRCDeviceStatusChanged:(ZMVideoSDKCRCCallStatus)status;
481
488- (void)onVideoCanvasSubscribeFail:(ZMVideoSDKSubscribeFailReason)failReason user:(ZMVideoSDKUser* _Nullable)user view:(NSView* _Nullable)view;
489
496- (void)onShareCanvasSubscribeFail:(ZMVideoSDKUser* _Nullable)user view:(NSView* _Nullable)view shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
497
502- (void)onAnnotationHelperCleanUp:(ZMVideoSDKAnnotationHelper* _Nullable)helper;
503
509- (void)onAnnotationPrivilegeChange:(ZMVideoSDKUser* _Nullable)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
510
515- (void)onAnnotationHelperActived:(NSView* _Nullable)view;
516
523- (void)onAnnotationToolTypeChanged:(ZMVideoSDKAnnotationHelper* _Nullable)helper view:(NSView* _Nullable)view toolType:(ZMVideoSDKAnnotationToolType)toolType;
524
530- (void)onSendFile:(ZMVideoSDKSendFile * _Nullable)sendFile status:(ZMVideoSDKFileTransferStatus)status;
531
537- (void)onReceiveFile:(ZMVideoSDKReceiveFile * _Nullable)receiveFile status:(ZMVideoSDKFileTransferStatus)status;
538
543- (void)onVideoAlphaChannelStatusChanged:(BOOL)isAlphaModeOn;
544
551- (void)onRemoteControlStatus:(ZMVideoSDKRemoteControlStatus)status user:(ZMVideoSDKUser *)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction;
552
559- (void)onRemoteControlRequestReceived:(ZMVideoSDKUser *)user shareAction:(ZMVideoSDKShareAction* _Nullable)shareAction handler:(ZMVideoSDKRemoteControlRequestHandler *)handler;
560
566- (void)onSpotlightVideoChanged:(ZMVideoSDKVideoHelper*)videoHelper userList:(NSArray<ZMVideoSDKUser*>*_Nullable)userlist;
567
573- (void)onBindIncomingLiveStreamResponse:(BOOL)bSuccess streamKeyID:(NSString*)streamKeyID;
574
580- (void)onUnbindIncomingLiveStreamResponse:(BOOL)bSuccess streamKeyID:(NSString*)streamKeyID;
581
587- (void)onIncomingLiveStreamStatusResponse:(BOOL)bSuccess streamsStatusList:(NSArray*)streamsStatusList;
588
594- (void)onStartIncomingLiveStreamResponse:(BOOL)bSuccess streamKeyID:(NSString*)streamKeyID;
595
601- (void)onStopIncomingLiveStreamResponse:(BOOL)bSuccess streamKeyID:(NSString*)streamKeyID;
602
608- (void)onSubSessionStatusChanged:(ZMVideoSDKSubSessionStatus)status subSessionKit:(NSArray<ZMVideoSDKSubSessionKit*>* _Nullable)subSessionKitList;
609
614- (void)onSubSessionManagerHandle:(ZMVideoSDKSubSessionManager* _Nullable)manager;
615
620- (void)onSubSessionParticipantHandle:(ZMVideoSDKSubSessionParticipant* _Nullable)participant;
621
626- (void)onSubSessionUsersUpdate:(ZMVideoSDKSubSessionKit* _Nullable)subSessionKit;
627
633- (void)onBroadcastMessageFromMainSession:(NSString*)message userName:(NSString*)name;
634
639- (void)onSubSessionUserHelpRequest:(ZMVideoSDKSubSessionUserHelpRequestHandler*)handler;
640
645- (void)onSubSessionUserHelpRequestResult:(ZMVideoSDKUserHelpRequestResult)result;
646
653- (void)onWhiteboardExported:(ZMVideoSDKExportFormat)format data:(unsigned char *)data dataLength:(long)length;
654
655
656
662- (void)onUserWhiteboardShareStatusChanged:(ZMVideoSDKUser *)user whiteboardHelper:(ZMVideoSDKWhiteboardHelper *)whiteboardHelper;
663
669- (void)onStartBroadcastResponse:(BOOL)isSuccess channelID:(NSString*)channelID;
670
675- (void)onStopBroadcastResponse:(BOOL)isSuccess;
676
682- (void)onGetBroadcastControlStatus:(BOOL)isSuccess broadcastControlStatus:(ZMVideoSDKBroadcastControlStatus)status;
683
688- (void)onStreamingJoinStatusChanged:(ZMVideoSDKStreamingJoinStatus)status;
689
695- (void)onEmojiReactionReceived:(ZMVideoSDKUser* _Nullable)user type:(ZMVideoSDKEmojiReactionType)type;
696
701- (void)onRealTimeMediaStreamsStatusChanged:(ZMVideoSDKRealTimeMediaStreamsStatus)status;
702
707- (void)onRealTimeMediaStreamsFail:(ZMVideoSDKRealTimeMediaStreamsFailReason)failReason;
708
715- (void)onCanvasSnapshotTaken:(ZMVideoSDKUser *)user isShare:(BOOL)isShare;
716
721- (void)onCanvasSnapshotIncompatible:(ZMVideoSDKUser *)user;
722@end
723NS_ASSUME_NONNULL_END
ZMVideoSDKMultiCameraStreamStatus
Enumerates the status of multi-camera streams.
ZMVideoSDKEmojiReactionType
Enumeration of emoji reaction types.
ZMVideoSDKDataType
Enumeration of the data type for network quality monitoring.
ZMVideoSDKExportFormat
Enumeration of supported export formats for content, like whiteboard.
ZMVideoSDKSubSessionStatus
Enumeration of subsession statuses.
ZMRecordingStatus
Enumerates the statuses of recording.
ZMVideoSDKMicTestStatus
Enumerates the microphone test statuses.
ZMVideoSDKSubscribeFailReason
Enumerates the reasons for a failed video subscription attempt.
ZMVideoSDKSessionLeaveReason
Enumerates the possible reasons for leaving a session.
ZMVideoSDKAudioDeviceStatus
Enumerates the statuses related to audio device state and availability.
ZMPhoneFailedReason
Enumerates the various reasons for a phone call failure.
ZMVideoSDKFileTransferStatus
Enumeration of file transfer status.
ZMVideoSDKRealTimeMediaStreamsStatus
Real-time media streams status. Here are more detailed structural descriptions.
ZMVideoSDKStreamingJoinStatus
Enumerations of streaming join status.
ZMVideoSDKBroadcastControlStatus
Enumerations of broadcast control status.
ZMVideoSDKChatPrivilegeType
Enumerates the types of chat privileges.
ZMVideoSDKChatMessageDeleteType
The chat message delete type are sent in the ZMVideoSDKDelegate::onChatMsgDeleteNotification callback...
ZMVideoSDKErrors
Enumerates all errors in the VideoSDK.
ZMVideoSDKLiveTranscriptionStatus
Enumerates the status of live transcription.
ZMVideoSDKAudioDeviceType
Enumerates the types of audio devices.
ZMVideoSDKRemoteControlStatus
Enumerates the statuses for remote control.
ZMVideoSDKCameraControlRequestType
Enumerates the types of remote camera control requests.
ZMVideoSDKShareSetting
Enumeration of Zoom Video SDK share setting types.
ZMVideoSDKNetworkStatus
Enumerates the network statuses.
ZMVideoSDKUserHelpRequestResult
Enumeration of subsession user help request results.
ZMVideoSDKRealTimeMediaStreamsFailReason
Failure reasons for RealTimeMediaStreams. Here are more detailed structural descriptions.
ZMVideoSDKLiveStreamStatus
Enumerates the statuses of live streaming.
ZMVideoSDKAnnotationToolType
Enumeration of the type for annotation tool. For more information, please visit https://support....
ZMPhoneStatus
Enumerates the statuses of a phone call.
ZMVideoSDKCRCCallStatus
Enumerates the statuses of a CRC call.
Annotation helper interface for Zoom Video SDK.
Provides methods for managing audio in Zoom Video SDK sessions.
Represents raw audio data received from the SDK.
Camera control request handler object interface.
Chat helper interface.
Represents a chat message within a session.
Helper class for managing outgoing live stream.
Represents a language used in live transcription.
Represents a single message information of live transcription.
OnHold user snapshot.
Provides methods to manage session password entry when joining a session.
Handles proxy authentication input and provides metadata about the proxy connection.
QOS statistics for inbound media stream (receiving).
QOS statistics for outbound media stream (sending).
Base QOS statistics for media streams (Audio, Video, Share).
Video or share raw data pipe interface.
Represents a file being received in the session.
Handler for responding to incoming remote control requests.
Provides details about the SSL certificate used for secure connections.
Represents a file being sent in the session.
Represents the state and control interfaces of a share action in a Zoom session.
Main helper class managing sharing.
Represents a subsession instance.
Manages subsession lifecycle and communication.
Interface for subsession participants.
Handler for user help requests in subsessions.
Represents a user within a subsession.
User control interface.
Zoom Video SDK user information.
Manages the rendering of video or screen share content in the Zoom Video SDK.
An interface to control video and manage cameras during a video session.
Helper class for managing whiteboard functionality in Zoom Video SDK sessions.
void onSessionJoin()
Invoked when the current user joins the session.
void onProxyDetectComplete()
Notification callback of completing the proxy detection.
void onHoldJoined()
Invoked when the local user has joined OnHold.
void onHostAskUnmute()
Invoked when a host requests you to unmute yourself.
void onVoiceInterpretationReady()
Callback event when voice interpretation is ready.
void onSelectedAudioDeviceChanged()
Notify the user that a mic or speaker device is selected when testing. Then the SDK closes the mic or...
void onCameraListChanged()
Notify that the camera list has updated.