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
149- (void)onLiveTranscriptionStatus:(ZoomSDKLiveTranscriptionStaus)status;
150
155- (void)onLiveTranscriptionMsgInfoReceived:(ZoomSDKLiveTranscriptionMessageInfo*_Nullable)messageInfo;
156
161- (void)onOriginalLanguageMsgReceived:(ZoomSDKLiveTranscriptionMessageInfo*_Nullable)messageInfo;
162
168- (void)onLiveTranscriptionMsgError:(ZoomSDKLiveTranscriptionLanguage*_Nullable)spokenLanguage transcriptLanguage:(ZoomSDKLiveTranscriptionLanguage*_Nullable)transcriptLanguage;
169
176- (void)onRequestForLiveTranscriptReceived:(unsigned int)requesterID anonymous:(BOOL)bAnonymous;
177
182- (void)onRequestLiveTranscriptionStatusChange:(BOOL)bEnabled;
183
188- (void)onCaptionStatusChanged:(BOOL)enable;
189
194- (void)onStartCaptionsRequestReceived:(ZoomSDKCCRequestHandler *)handler;
195
200
205- (void)onManualCaptionStatusChanged:(BOOL)bEnabled;
206
211- (void)onSpokenLanguageChanged:(ZoomSDKLiveTranscriptionLanguage*_Nullable)spokenLanguage;
212@end
213
214
219@interface ZoomSDKCloseCaptionController : NSObject
220{
221 id<ZoomSDKCloseCaptionControllerDelegate> _delegate;
222}
223
227@property(nonatomic, assign, nullable)id<ZoomSDKCloseCaptionControllerDelegate> delegate;
228
234
240
246- (BOOL)canBeAssignedToSendCC:(unsigned int)userID;
247
253
259
265
271- (ZoomSDKError)withdrawCCPrivilegeForUser:(unsigned int)userID;
272
278- (ZoomSDKError)assignCCPrivilegeTo:(unsigned int)userID;
279
285- (ZoomSDKError)sendClosedCaptionMessage:(NSString*)ccString;
286
292
298
304- (ZoomSDKError)getClosedCaptionUrlFor3rdParty:(NSString*_Nullable*_Nonnull)thirdPartyURL;
305
311
317
323
329
335
341
347
353
360
367
374- (ZoomSDKError)enableRequestLiveTranscription:(BOOL)bEnable;
375
382
389- (ZoomSDKError)requestToStartLiveTranscription:(BOOL)bAnonymous;
390
396- (ZoomSDKError)enableMeetingManualCaption:(BOOL)bEnable;
397
403
409
416- (ZoomSDKError)setMeetingSpokenLanguage:(int)languageID DEPRECATED_MSG_ATTRIBUTE("Use -setMeetingSpokenLanguage:isForAll: instead");
417
424- (ZoomSDKError)setMeetingSpokenLanguage:(int)languageID isForAll:(BOOL)isForAll;
425
431
437
443- (ZoomSDKError)setTranslationLanguage:(int)languageID;
444
450
455- (ZoomSDKError)enableReceiveSpokenLanguageContent:(BOOL)enable;
456
462
468
474- (ZoomSDKError)enableCaptions:(BOOL)enable;
475
481
487
493
499- (ZoomSDKError)requestToStartCaptions:(BOOL)enableTranslation;
500@end
501NS_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.