Zoom Rooms Controller SDK Reference 6.5.0
Loading...
Searching...
No Matches
IClosedCaptionHelper.h
Go to the documentation of this file.
1
12#ifndef ZRC_ICLOSEDCAPTIONHELPER_H
13#define ZRC_ICLOSEDCAPTIONHELPER_H
14
15#include "ZRCSDKTypes.h"
16
18
24{
28};
29
35{
40};
41
47{
50};
51
57{
60};
61
65{
66 bool available = false;
67 bool visible = false;
69};
70
74{
75 int32_t languageID = -1;
76 std::string displayName;
77 std::string abbreviatedName;
78};
79
83{
85 std::vector<NewLTTCaptionLanguage> availableLanguages;
86};
87
91{
93 std::vector<NewLTTCaptionLanguage> availableLanguages;
94 std::vector<NewLTTCaptionLanguage> recentlyUsedLanguages;
95};
96
100{
104 bool isShowCaptionOn = false;
111 bool isCaptionDisabled = false;
112 bool isAllowShowCaption = false;
116};
117
121{
122 bool isAvailable = false;
123 bool isOriginalAudioMuted = false;
124 std::vector<InterpretLanguageInfo> languages;
126};
127
131{
133 std::string messageID;
134 int32_t userNodeID = 0;
135 std::string userName;
136 int64_t messageTime = 0;
137 std::string messageContent;
139 int32_t speakerTagID = 0;
140 std::string speakerTagName;
142 std::string attendeeJid;
143};
144
148{
149public:
151
160 virtual void OnUpdateClosedCaptionNotification(const ClosedCaptionInfo& closedCaptionInfo) = 0;
161
171 virtual void OnClosedCaptionResponse(int32_t result, ClosedCaptionFontSize fontSize) = 0;
172
181 virtual void OnNewLTTLanguageNotification(const NewLTTCaptionInfo& newLttCaptionInfo) = 0;
182
192
202
211 virtual void OnMessageAdd(const LTTCaptionMessage& message) = 0;
212
221 virtual void OnMessageUpdate(const LTTCaptionMessage& message) = 0;
222
231 virtual void OnMessageNotSupported(const LTTCaptionMessage& message) = 0;
232
242 virtual void OnMessageLoad(const std::vector<LTTCaptionMessage>& messages, bool hasMoreHistory) = 0;
243
253};
254
258{
259public:
261
273
285
286 // CLOSED CAPTION
287
300
312 virtual ZRCSDKError AssignClosedCaption(int32_t userID, bool assign) = 0;
313
314 // Next Generation Language Transcription Translation
315
326 virtual ZRCSDKError ShowCaption(bool show) = 0;
327
339
350 virtual ZRCSDKError EnableNewLTTManualCaptioner(bool enable) = 0;
351
362 virtual ZRCSDKError SetNewLTTSpeakerLanguage(int32_t languageID) = 0;
363
374 virtual ZRCSDKError SetNewLTTTranslationLanguage(int32_t languageID) = 0;
375
387
398
409 virtual ZRCSDKError ApproveEnableCaptionRequest(bool approve) = 0;
410
421 virtual ZRCSDKError EnableCaption(bool enable) = 0;
422
423 // Interpret Language
424
435 virtual ZRCSDKError MuteOriginalAudio(bool mute) = 0;
436
448
449 //LTT Caption message
450
461 virtual ZRCSDKError ShowTranscriptPanelOnZR(bool show) = 0;
462
473 virtual ZRCSDKError ShowTranscriptPanelOnZRC(bool show) = 0;
474
485
496 virtual ZRCSDKError IsAllowViewFullTranscript(bool& isAllow) = 0;
497
508 virtual ZRCSDKError GetLTTCaptionMessageList(std::vector<LTTCaptionMessage>& messages) = 0;
509
520 virtual ZRCSDKError HasMoreMessageHistoryOnZR(bool& hasMore) = 0;
521};
522
524
525#endif //ZRC_ICLOSEDCAPTIONHELPER_H
ClosedCaptionFontSize
Closed caption font size Here are more detailed structural descriptions.
@ ClosedCaptionFontSizeLarge
Closed caption font size large.
@ ClosedCaptionFontSizeSmall
Closed caption font size small.
@ ClosedCaptionFontSizeMedium
Closed caption font size medium.
NewLTTCaptionNotificationType
NewLTT caption notification type Here are more detailed structural descriptions.
@ NewLTTCaptionNotificationTypeEnableCaptionRequestDeclined
@ NewLTTCaptionNotificationTypeCaptionStart
@ NewLTTCaptionNotificationTypeEnableCaptionRequestReceived
@ NewLTTCaptionNotificationTypeSpeakerLanguageMismatch
LTTCaptionWritingDirection
LTT caption writing direction. Here are more detailed structural descriptions.
@ LTTCaptionWritingDirectionRightToLeft
Direction Right to Left.
@ LTTCaptionWritingDirectionLeftToRight
Direction Left to Right.
LTTCaptionMessageResultType
LTT caption message result type. Here are more detailed structural descriptions.
@ LTTCaptionMessageResultTypeTranslationNotSupport
Language translation not support.
@ LTTCaptionMessageResultTypeSuccess
Success.
#define NS_ZRCSDK_END
#define NS_ZRCSDK_BEG
ZRC SDK Types.
ZRCSDKError
SDK error types. Here are more detailed structural descriptions.
Definition ZRCSDKTypes.h:22
Closed Caption helper interface.
virtual ZRCSDKError ShowCaption(bool show)=0
Control New LTT caption visibility.
virtual ZRCSDKError EnableNewLTTManualCaptioner(bool enable)=0
Enable New LTT manual captioner.
virtual ZRCSDKError AssignClosedCaption(int32_t userID, bool assign)=0
Assign user to type closed caption.
virtual ZRCSDKError DeregisterSink(IClosedCaptionHelperSink *pSink)=0
Deregister closed caption helper callback sink.
virtual ZRCSDKError LoadLTTCaptionMessage()=0
Load more LTT caption history messages step by 20.
virtual ZRCSDKError ShowNewLTTOriginalAndTranslated(bool show)=0
Show New LTT caption both original and translated caption.
virtual ZRCSDKError SelectInterpretLanguage(const InterpretLanguageInfo &languageInfo)=0
Select interpret language.
virtual ZRCSDKError HasMoreMessageHistoryOnZR(bool &hasMore)=0
Query if has more history on ZR.
virtual ZRCSDKError SetNewLTTSpeakerLanguage(int32_t languageID)=0
Set New LTT caption speaker language.
virtual ZRCSDKError GetLTTCaptionMessageList(std::vector< LTTCaptionMessage > &messages)=0
Get current loaded LTT caption message list.
virtual ZRCSDKError RegisterSink(IClosedCaptionHelperSink *pSink)=0
Register closed caption helper callback sink.
virtual ZRCSDKError EnableCaption(bool enable)=0
Enable caption.
virtual ZRCSDKError ApproveEnableCaptionRequest(bool approve)=0
Approve enable caption request.
virtual ZRCSDKError ShowTranscriptPanelOnZR(bool show)=0
Show transcript panel on ZR display.
virtual ZRCSDKError ShowTranscriptPanelOnZRC(bool show)=0
Show transcript panel on controller.
virtual ZRCSDKError SetNewLTTTranslationLanguage(int32_t languageID)=0
Set New LTT caption translation language.
virtual ZRCSDKError SetNewLTTCaptionFontSize(ClosedCaptionFontSize fontSize)=0
Control New LTT caption font size.
virtual ZRCSDKError MuteOriginalAudio(bool mute)=0
Mute original audio.
virtual ZRCSDKError SendEnableCaptionRequest()=0
Send enable caption request to host.
virtual ZRCSDKError IsAllowViewFullTranscript(bool &isAllow)=0
Query if is allow view full transcript.
virtual ZRCSDKError ControlClosedCaptionVisible(bool show, ClosedCaptionFontSize fontSize)=0
Control closed caption visibility and font size.
Closed Caption helper event callback.
virtual void OnUpdateClosedCaptionNotification(const ClosedCaptionInfo &closedCaptionInfo)=0
Closed caption info changed callback.
virtual void OnUpdateInterpretLanguageNotification(const InterpretLanguageInfoList &infoList)=0
Interpret language info update notification.
virtual void OnNewLTTCaptionNotification(NewLTTCaptionNotificationType type)=0
New LTT caption notification.
virtual void OnMessageUpdate(const LTTCaptionMessage &message)=0
LTT caption message update notification.
virtual void OnMessageInstanceOnlySpeakerTagUpdate(const LTTCaptionMessage &message)=0
LTT caption message instance only smart speaker tag update notification.
virtual void OnNewLTTLanguageNotification(const NewLTTCaptionInfo &newLttCaptionInfo)=0
New LTT caption info changed callback.
virtual void OnMessageLoad(const std::vector< LTTCaptionMessage > &messages, bool hasMoreHistory)=0
LTT caption messages loaded notification.
virtual void OnClosedCaptionResponse(int32_t result, ClosedCaptionFontSize fontSize)=0
Closed caption control response callback.
virtual void OnMessageAdd(const LTTCaptionMessage &message)=0
LTT caption message add notification.
virtual void OnMessageNotSupported(const LTTCaptionMessage &message)=0
LTT caption message not supported notification.
Closed Caption info.
bool available
TRUE indicates closed caption is available. Otherwise not.
ClosedCaptionFontSize fontSize
Closed caption font size.
bool visible
TRUE indicates closed caption is visible. Otherwise not.
Interpret language information.
Interpret language info list.
bool isAvailable
TRUE indicates interpret language is available.
std::vector< InterpretLanguageInfo > languages
Supported interpret language list.
InterpretLanguageInfo activeLanguage
Active interpret language.
bool isOriginalAudioMuted
TRUE indicates interpret language original audio is muted.
LTT caption message.
int64_t messageTime
Message time.
SmartTagUser instanceOnlySpeakerTag
Instance only smart speaker tag only for individual message.
std::string attendeeJid
An attendee's attendeeJid remains unchanged when switching between main session and sub-session.
std::string speakerTagName
Smart speaker tag speaker name.
LTTCaptionMessageResultType result
Message result type.
std::string messageContent
Message content.
LTTCaptionWritingDirection direction
Message writing direction.
std::string userName
User name.
std::string messageID
Message ID.
int32_t userNodeID
User node ID, compare it with MeetingParticipant userID.
int32_t speakerTagID
Smart speaker tag speaker ID.
New LTT caption info.
bool isShowCaptionOn
TRUE indicates show caption is on. Otherwise not.
bool isCaptionDisabled
TRUE indicates caption is disabled.
bool isAllowShowCaption
TRUE indicates allow show caption.
NewLTTCaptionSpeakerLanguageInfo speakingLanguageInfo
New LTT caption speaker language info.
bool isShowTranscriptPanelOnZR
TRUE indicates is showing transcript panel on ZR.
bool isMmrSupportDisableLttCaption
TRUE indicates current meeting server supports disable LTT caption.
bool isAllowViewFullTranscript
TRUE indicates allow view full transcript.
NewLTTCaptionTranslationInfo translationInfo
New LTT caption translation info.
bool isManualCaptionerEnabled
TRUE indicates manual captioner is enabled. Otherwise not.
bool isAutomatedCaptionFeatureOn
TRUE indicates automated caption is enabled. Otherwise not.
ClosedCaptionFontSize fontSize
Caption font size, see ClosedCaptionFontSize enum.
bool isNewLttCaptionFeatureOn
TRUE indicates New LTT is enabled. Otherwise only Closed Caption is enabled.
bool isAllowRequestCaption
TRUE indicates allow request caption.
bool isShowOriginalAndTranslated
TRUE indicates showing original and translated. Otherwise not.
bool isTranslatedCaptionFeatureOn
TRUE indicates translated caption is enabled. Otherwise not.
New LTT caption language If languageID is -1, indicates that current language is invalid.
int32_t languageID
Language ID defined and used between Controller and Zoom Room.
std::string displayName
Language display name.
std::string abbreviatedName
Language abbreviated name.
New LTT caption speaking language info.
NewLTTCaptionLanguage currentLanguage
Current selected language.
std::vector< NewLTTCaptionLanguage > availableLanguages
Available languages.
New LTT caption translation info.
NewLTTCaptionLanguage currentLanguage
Current selected language.
std::vector< NewLTTCaptionLanguage > availableLanguages
Available languages.
std::vector< NewLTTCaptionLanguage > recentlyUsedLanguages
Recently used languages.
Smart tag user.