Quick Reference
- Class:
CometChat.MainVideoContainerSetting - Apply via:
CallSettingsBuilder.setMainVideoContainerSetting(videoSettings) - Customizable elements: Aspect ratio, full screen button, name label, network label
- Position constants:
POSITION_TOP_LEFT,POSITION_TOP_RIGHT,POSITION_BOTTOM_LEFT,POSITION_BOTTOM_RIGHT - Requires: Default Calling or Direct Calling setup
Implementation
Once you have decided to implement Default Calling or Direct Calling calling and followed the steps to implement them. Just few additional methods will help you quickly customize the main video container. Please make sure your callSettings is configured accordingly for Default Calling or Direct Calling.Main Video Container Setting
TheMainVideoContainerSetting Class is the required in case you want to customise the main video view. You need to pass the Object of the MainVideoContainerSetting Class in the setMainVideoContainerSetting() method of the CallSettingsBuilder.
Example:
- JavaScript
- TypeScript
Best Practices
Best Practices
Troubleshooting
Troubleshooting
Next Steps
Default Calling
Implement default audio/video calling.
Direct Calling
Implement direct calling without call events.
Virtual Background
Add virtual background and blur effects.
Recording
Record calls for playback.