Quick Reference - Customize the main video container:
Overview
This section guides you through customizing the main video container in your call UI. Once you have decided to implement Ringing or Call Session calling and followed the steps to implement them, a few additional methods will help you quickly customize the main video container. Please make sure your callSettings is configured accordingly for Ringing or Call Session.Main Video Container Setting
TheMainVideoContainerSetting class is required when 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
Best Practices
Keep controls accessible
Keep controls accessible
Avoid placing multiple buttons in the same corner position. Overlapping controls can make the UI confusing and hard to interact with. Spread controls across different corners for a clean layout.
Use ASPECT_RATIO_CONTAIN for most use cases
Use ASPECT_RATIO_CONTAIN for most use cases
The
ASPECT_RATIO_CONTAIN mode ensures the full video frame is visible without cropping. Use ASPECT_RATIO_COVER only when you want the video to fill the container and are okay with some edges being clipped.Test on multiple screen sizes
Test on multiple screen sizes
Video container customizations can look different across devices. Test your button positions and label visibility on both small phones and larger tablets to ensure a consistent experience.
Troubleshooting
Custom settings not applied
Custom settings not applied
Ensure you pass the
MainVideoContainerSetting object to setMainVideoContainerSetting() on the CallSettingsBuilder before calling .build(). Settings applied after building won’t take effect.Next Steps
Call Session
Start and manage call sessions with full configuration options
Recording
Record call sessions for playback and compliance
Presenter Mode
Enable screen sharing and presenter layouts in calls
Ringing
Implement a complete calling experience with incoming and outgoing call UI