CometChat Calling SDK v5 - Call Layouts for JavaScript
The CometChat Calls SDK provides three layout modes to display participants during a call. Each participant can independently choose their preferred layout without affecting others.
Change the layout dynamically during an active call:
// Switch to tile layoutCometChatCalls.setLayout("TILE");// Switch to sidebar layoutCometChatCalls.setLayout("SIDEBAR");// Switch to spotlight layoutCometChatCalls.setLayout("SPOTLIGHT");