CaptionsSettingsModalProps interface
CaptionsSettingsModal Component Props.
Properties
caption |
1 to 1 mapping between language code and language string for caption languages |
change |
Flag to show the caption language dropdown |
current |
Current caption language |
current |
Current spoken language |
is |
Flag to indicate if captions feature is active |
on |
Callback that is triggered when the modal is dismissed |
on |
Callback to set caption language |
on |
Callback to set spoken language |
on |
Callback to start captions |
show |
Flag to show the modal |
spoken |
1 to 1 mapping between language code and language string for spoken languages |
strings | Strings for the captions settings modal |
supported |
List of supported caption languages |
supported |
List of supported spoken languages |
Property Details
captionLanguageStrings
1 to 1 mapping between language code and language string for caption languages
captionLanguageStrings?: CaptionLanguageStrings
Property Value
changeCaptionLanguage
Flag to show the caption language dropdown
changeCaptionLanguage?: boolean
Property Value
boolean
currentCaptionLanguage
Current caption language
currentCaptionLanguage?: keyof CaptionLanguageStrings
Property Value
keyof CaptionLanguageStrings
currentSpokenLanguage
Current spoken language
currentSpokenLanguage: keyof SpokenLanguageStrings
Property Value
keyof SpokenLanguageStrings
isCaptionsFeatureActive
Flag to indicate if captions feature is active
isCaptionsFeatureActive?: boolean
Property Value
boolean
onDismissCaptionsSettings
Callback that is triggered when the modal is dismissed
onDismissCaptionsSettings?: () => void
Property Value
() => void
onSetCaptionLanguage
Callback to set caption language
onSetCaptionLanguage?: (language: keyof CaptionLanguageStrings) => Promise<void>
Property Value
(language: keyof CaptionLanguageStrings) => Promise<void>
onSetSpokenLanguage
Callback to set spoken language
onSetSpokenLanguage: (language: keyof SpokenLanguageStrings) => Promise<void>
Property Value
(language: keyof SpokenLanguageStrings) => Promise<void>
onStartCaptions
Callback to start captions
onStartCaptions: (options?: CaptionsOptions) => Promise<void>
Property Value
(options?: CaptionsOptions) => Promise<void>
showModal
Flag to show the modal
showModal?: boolean
Property Value
boolean
spokenLanguageStrings
1 to 1 mapping between language code and language string for spoken languages
spokenLanguageStrings?: SpokenLanguageStrings
Property Value
strings
Strings for the captions settings modal
strings?: CaptionsSettingsModalStrings
Property Value
supportedCaptionLanguages
List of supported caption languages
supportedCaptionLanguages?: (keyof CaptionLanguageStrings)[]
Property Value
(keyof CaptionLanguageStrings)[]
supportedSpokenLanguages
List of supported spoken languages
supportedSpokenLanguages: (keyof SpokenLanguageStrings)[]
Property Value
(keyof SpokenLanguageStrings)[]