captionsFontSizeChanged

When the user changes the captions font size from the settings inside the room, then the captionsFontSizeChanged event will be emitted.

circle-info

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

Sample payload

{
  "type": "captionsFontSizeChanged",
  "data": {
    "fontSize": "large"
  }
}

Sample subscription code

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);
});

Last updated