showCaptions()

Shows the captions (automatic subtitles) panel at the bottom of the screen.

sambaFrame.showCaptions();

Note that captions functionality must be enabled in the settings of your room, otherwise this method won't be able to do anything meaningful. To enable captions through REST API use the captions_enabled boolean field when creating or editing your room.

Sample use case: Have a completely custom toolbar in your integration and you want user to be able to show/hide captions panel from a custom button in your toolbar.

showCaptions is often used in conjuction with hideCaptions method.

Last updated