virtualBackgroundChanged

Emitted when the virtual background settings change for the local user.

Sample payload

{
    "type": "virtualBackgroundChanged",
    "data": {
        "virtualBackgroundConfig": {
            "type": "blur",
            "value": "balanced",
            "enforced": false
        }
    }
}

Sample subscription code

sambaFrame.on('virtualBackgroundChanged', (event) => {
  const data = event.data;
  console.log('New VB config is:', data.virtualBackgroundConfig);
});

Last updated