Skip to main content
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

The MainVideoContainerSetting 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:

Best Practices

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.
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.
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

Ensure you pass the MainVideoContainerSetting object to setMainVideoContainerSetting() on the CallSettingsBuilder before calling .build(). Settings applied after building won’t take effect.
Check that the visibility parameter is set to true for the button you want to show. Also verify that enableDefaultLayout(true) is set in your CallSettingsBuilder, as custom video settings work alongside the default layout.

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