const videoSettings = new CometChatCalls.MainVideoContainerSetting();
// Set aspect ratio
videoSettings.setMainVideoAspectRatio(
CometChatCalls.ASPECT_RATIO_CONTAIN
);
// Configure full screen button
videoSettings.setFullScreenButtonParams(
CometChatCalls.POSITION_BOTTOM_RIGHT,
true // visible
);
// Configure name label
videoSettings.setNameLabelParams(
CometChatCalls.POSITION_BOTTOM_LEFT,
true, // visible
"rgba(27, 27, 27, 0.4)" // background color
);
// Configure network quality label
videoSettings.setNetworkLabelParams(
CometChatCalls.POSITION_BOTTOM_RIGHT,
true // visible
);
// Apply to call settings
const callSettings = new CometChatCalls.CallSettingsBuilder()
.enableDefaultLayout(true)
.setMainVideoContainerSetting(videoSettings)
.setCallListener(callListener)
.build();