Last updated 2 years ago
When the user changes the captions font size from the settings inside the room, then the captionsFontSizeChanged event will be emitted.
You can also change the captions font size programmatically through the SDK. Use the method to achieve that.
{ "type": "captionsFontSizeChanged", "data": { "fontSize": "large" } }
sambaFrame.on('captionsFontSizeChanged', (event) => { const data = event.data; //Possible values for "fontSize" field are "small", "medium" and "large" console.log('Captions font size has been changed to', data.fontSize); });