Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKCloseCaptionController.h
Go to the documentation of this file.
1
5
6
7#import <Foundation/Foundation.h>
8#import <ZoomSDK/ZoomSDKErrors.h>
9
10NS_ASSUME_NONNULL_BEGIN
17@interface ZoomSDKCCRequestHandler : NSObject
21@property (nonatomic, assign, readonly) unsigned int senderUserID;
22
26@property (nonatomic, assign, readonly) BOOL isRequestTranslationOn;
32@end
33
34
45@end
46
57- (ZoomSDKError)approveStartCaptionsRequest:(int)languageID;
58@end
59
68@property (nonatomic, copy, readonly, nullable) NSString *messageID;
69
73@property (nonatomic, assign, readonly) unsigned int speakerID;
74
78@property (nonatomic, copy, readonly, nullable) NSString *speakerName;
79
83@property (nonatomic, copy, readonly, nullable) NSString *messageContent;
84
88@property (nonatomic, assign, readonly) time_t timeStamp;
89
93@property (nonatomic, assign, readonly) ZoomSDKLiveTranscriptionOperationType messageType;
94
95@end
96
97
106@property(nonatomic, assign, readonly) int languageID;
110@property(nonatomic, copy, readonly, nullable) NSString* languageName;
111@end
112
113
118@protocol ZoomSDKCloseCaptionControllerDelegate <NSObject>
119@optional
120
125
130
137- (void)onReceiveCCMessageWithString:(NSString*)inString senderID:(unsigned int)senderID;
138
143- (void)onReceiveCCRealtimeMessage:(NSString *)realtimeMessage;
144
150- (void)onLiveTranscriptionStatus:(ZoomSDKLiveTranscriptionStaus)status;
151
156- (void)onLiveTranscriptionMsgInfoReceived:(ZoomSDKLiveTranscriptionMessageInfo*_Nullable)messageInfo;
157
162- (void)onOriginalLanguageMsgReceived:(ZoomSDKLiveTranscriptionMessageInfo*_Nullable)messageInfo;
163
169- (void)onLiveTranscriptionMsgError:(ZoomSDKLiveTranscriptionLanguage*_Nullable)spokenLanguage transcriptLanguage:(ZoomSDKLiveTranscriptionLanguage*_Nullable)transcriptLanguage;
170
177- (void)onRequestForLiveTranscriptReceived:(unsigned int)requesterID anonymous:(BOOL)bAnonymous;
178
183- (void)onRequestLiveTranscriptionStatusChange:(BOOL)bEnabled;
184
189- (void)onCaptionStatusChanged:(BOOL)enable;
190
195- (void)onStartCaptionsRequestReceived:(ZoomSDKCCRequestHandler *)handler;
196
201
206- (void)onManualCaptionStatusChanged:(BOOL)bEnabled;
207
212- (void)onSpokenLanguageChanged:(ZoomSDKLiveTranscriptionLanguage*_Nullable)spokenLanguage;
213@end
214
215
220@interface ZoomSDKCloseCaptionController : NSObject
221{
222 id<ZoomSDKCloseCaptionControllerDelegate> _delegate;
223}
224
228@property(nonatomic, assign, nullable)id<ZoomSDKCloseCaptionControllerDelegate> delegate;
229
235
241
247- (BOOL)canBeAssignedToSendCC:(unsigned int)userID;
248
254
260
266
272- (ZoomSDKError)withdrawCCPrivilegeForUser:(unsigned int)userID;
273
279- (ZoomSDKError)assignCCPrivilegeTo:(unsigned int)userID;
280
286- (ZoomSDKError)sendClosedCaptionMessage:(NSString*)ccString;
287
293
299
305- (ZoomSDKError)getClosedCaptionUrlFor3rdParty:(NSString*_Nullable*_Nonnull)thirdPartyURL;
306
312
318
324
330
336
342
348
354
361
368
375- (ZoomSDKError)enableRequestLiveTranscription:(BOOL)bEnable;
376
383
390- (ZoomSDKError)requestToStartLiveTranscription:(BOOL)bAnonymous;
391
397- (ZoomSDKError)enableMeetingManualCaption:(BOOL)bEnable;
398
404
410
417- (ZoomSDKError)setMeetingSpokenLanguage:(int)languageID DEPRECATED_MSG_ATTRIBUTE("Use -setMeetingSpokenLanguage:isForAll: instead");
418
425- (ZoomSDKError)setMeetingSpokenLanguage:(int)languageID isForAll:(BOOL)isForAll;
426
432
438
445- (ZoomSDKError)setTranslationLanguage:(int)languageID;
446
452
457- (ZoomSDKError)enableReceiveSpokenLanguageContent:(BOOL)enable;
458
464
470
476- (ZoomSDKError)enableCaptions:(BOOL)enable;
477
483
489
495
501- (ZoomSDKError)requestToStartCaptions:(BOOL)enableTranslation;
502@end
503NS_ASSUME_NONNULL_END
ZoomSDKLiveTranscriptionStaus
Enumeration of live transcription status in a meeting.
ZoomSDKError
Enumeration of common errors of SDK.
ZoomSDKLiveTranscriptionOperationType
Enumeration of live transcription operation types.
The helper to handle the requested of start captions.
ZoomSDKError deny()
Deny the request to start captions.
unsigned int senderUserID
The user's user ID who send the start captions request.
Subclass of ZoomSDKCCRequestHandler for requests without translation.
Subclass of ZoomSDKCCRequestHandler for requests with translation enabled.
ZoomSDKError approveStartCaptionsRequest()
Approve the start captions request.
Controller interface to manage closed captions and live transcription in meetings.
BOOL canDisableCaptions()
Query if the user can disable captions.
ZoomSDKError saveCCHistory()
Saves CC.
id< ZoomSDKCloseCaptionControllerDelegate > delegate
The delegate to receive closed caption events.
BOOL isSupportRequestCaptions()
Determines whether users can request to start captions.
BOOL isCaptionsEnabled()
Query if the captions enabled.
NSArray< ZoomSDKLiveTranscriptionLanguage * > * getAvailableMeetingSpokenLanguages()
Gets the list of all available spoken languages in a meeting.
BOOL canSendClosedCaption()
Query if the current user can send Close Caption.
ZoomSDKError canStartLiveTranscription()
Query if it is able to start live transcription.
NSArray< ZoomSDKLiveTranscriptionLanguage * > * getAvailableTranslationLanguages()
Gets the list of all available translation languages in a meeting.
BOOL isCanSaveClosedCaption()
Query if user can save Close Caption.
ZoomSDKLiveTranscriptionLanguage * getTranslationLanguage()
Gets the current user's translation language.
ZoomSDKLiveTranscriptionLanguage * getMeetingSpokenLanguage()
Gets the current user's spoken language.
ZoomSDKError isRequestToStartLiveTranscriptionEnabled()
Determines whether the request to start live transcription is enabled.
BOOL canAssignOthersToSendCC()
Query if it is able to assign others to send Close Caption.
id< ZoomSDKCloseCaptionControllerDelegate > _delegate
BOOL isLiveTranscriptionFeatureEnabled()
Determines whether the live transcription feature is enabled.
BOOL isSupportTranslationWhenRequestToStartCaptions()
Determines whether support translation when users request to start captions.
NSString * getLiveTranscriptLegalNoticesExplained()
Gets the CC legal notices explained.
ZoomSDKError stopLiveTranscription()
Stops live transcription.
BOOL isMeetingManualCaptionEnabled()
Determines whether manually added closed captions are enabled for the meeting.
BOOL isMeetingSupportCloseCaption()
Query if Close Caption is supported in the current meeting.
BOOL isTextLiveTranslationEnabled()
Determines whether the translated captions feature is enabled.
ZoomSDKLiveTranscriptionStaus getLiveTranscriptionStatus()
Query the status of live transcription.
BOOL isReceiveSpokenLanguageContentEnabled()
Determines whether receive original and translated is available.
NSString * getClosedCaptionHistorySavedPath()
Gets the path where the CC is saved.
BOOL isMultiLanguageTranscriptionEnabled()
Determines whether the multi-language transcription feature is enabled.
ZoomSDKError startLiveTranscription()
Starts live transcription.
BOOL isLiveTranscriptLegalNoticeAvailable()
Determines whether the legal notice for Live transcript is available.
BOOL is3rdPartCCServerAvailable()
Query if the third party close caption server is available.
NSString * getLiveTranscriptLegalNoticesPrompt()
Gets the CC legal notices prompt.
Represents a language supported for live transcription.
Interface representing a live transcription message.
unsigned int speakerID
Gets the speaker's ID.
ZoomSDKLiveTranscriptionOperationType messageType
Gets the current message's type.
time_t timeStamp
Gets the time stamp of the current message.
NSString * messageID
Gets the message ID of the current message.
NSString * messageContent
Gets the current message's content.
NSString * speakerName
Gets the speaker's name.
void onLostCCPrivilege()
Callback of losing privilege of close caption.
void onStartCaptionsRequestApproved()
Sink the event to start captions request was approved.
void onGetCCPrivilege()
Callback of getting the privilege of close caption.