captionsSpokenLanguageChanged

When the user changes his captions spoken language from the settings inside the room, then the captionsSpokenLanguageChanged event will be emitted.

You can also change the captions spoken language programmatically through the SDK. Use the configureCaptions method to achieve that.

Sample payload

{
  "type": "captionsSpokenLanguageChanged",
  "data": {
    "language": "de"
  }
}

Sample subscription code

sambaFrame.on('captionsSpokenLanguageChanged', (event) => {
  const data = event.data;
  //Possible values for "language" field are language codes described in the docs of configureCaptions event
  console.log('Captions spoken language has been changed to', data.language);
});

Last updated