configureVirtualBackground()
configureVirtualBackground(options: VirtualBackgroundOptions)
VirtualBackgroundOptions {
enforce?: boolean;
blur?: 'balanced' | 'strong';
image?: string;
imageUrl?: string;
videoUrl?: string;
thumbnailUrl?: string;
}//Enables strong blur of the background for the local user
sambaFrame.configureVirtualBackground({blur: 'strong'});
/*Enables balanced blur of the background for the local user and enforces it,
so the user cannot change it once inside the room*/
sambaFrame.configureVirtualBackground({blur: 'balanced', enforce: true});
//Sets a forest virtual background for the local user
sambaFrame.configureVirtualBackground({image: 'forest'});
//Sets an image from a public url as a virtual background for the local user
sambaFrame.configureVirtualBackground({imageUrl: 'https://someUrlOfAnImageHere'});
//Sets a video from a public url as a virtual background for the local user
sambaFrame.configureVirtualBackground({
videoUrl: 'https://someUrlOfAVideoHere',
thumbnailUrl: 'https://someUrlOfTheVideoThumbnailImage'
});Last updated