AI Integration Quick Reference
AI Integration Quick Reference
- Settings class:
CometChat.VirtualBackground - Apply via:
CallSettingsBuilder.setVirtualBackground(virtualBackground) - Toggle UI:
CallSettingsBuilder.showVirtualBackgroundSetting(true|false) - Runtime control:
CometChat.CallController.getInstance()→setBackgroundBlur(),setBackgroundImage(),openVirtualBackground() - Requires: Default Calling or Direct Calling setup
CallSettingsBuilder, and control them programmatically at runtime via CallController.
Before you begin, make sure you’ve set up Ringing or Call Session.
CallSettings Options
Configure virtual background behavior when building your call settings:
See VirtualBackground Class below for the full configuration options you can pass to
setVirtualBackground().
Runtime Control
For custom UI without the default layout, useCallController to control virtual background during an active call.
Open Virtual Background Setting
You can use theopenVirtualBackground() method to open the virtual background settings pop-up.
- TypeScript
- JavaScript
Set Background Blur
You can use thesetBackgroundBlur() method to apply background blur on the video stream. This method accepts a number which decides the level of blur to be applied.
- TypeScript
- JavaScript
Set Background Image
You can use thesetBackgroundImage()method to set the background image. This method takes either a URL or file Object & sets that image as the background.
- TypeScript
- JavaScript
VirtualBackground Class
TheVirtualBackground class controls how users interact with virtual background features. Pass a VirtualBackground instance to setVirtualBackground() in CallSettingsBuilder.
Next Steps
Video View Customisation
Customize the main video container layout.
Recording
Record calls for playback.
Custom CSS
Customize the calling UI appearance.
Custom CSS
Customize the calling UI appearance.