captionsSpokenLanguageChanged
When the user changes his captions spoken language from the settings inside the room, then the captionsSpokenLanguageChanged event will be emitted.
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