configureCaptions()
configureCaptions({ fontSize, spokenLanguage })
Changes the captions settings according to the provided params. You are able to change the font size of the captions (small, medium, large) and also the spoken language of the user. There is no autodetection of the speaking language, so if user is speaking in some other language than the default English, then the spoken language needs to be set for the captions to be proper.
Sample use cases:
You may want to control captions appearance and language with custom buttons or dropdowns outside the DigitalSamba room interface.
The related events are captionsFontSizeChanged and captionsSpokenLanguageChanged if you want to be informed when the captions settings have been changed.
Last updated