Skip to main content
Build a custom control panel to replace or extend the default call controls. Hide the default layout and implement your own UI using the SDK’s action methods.

Hide Default Layout

Disable the default control panel to use your own:

Available Actions

Use these methods to control the call from your custom UI:
ActionMethodDescription
Mute AudioCometChatCalls.muteAudio()Mute local microphone
Unmute AudioCometChatCalls.unmuteAudio()Unmute local microphone
Pause VideoCometChatCalls.pauseVideo()Stop sending video
Resume VideoCometChatCalls.resumeVideo()Resume sending video
Switch CameraCometChatCalls.switchCamera()Toggle front/rear camera
Leave SessionCometChatCalls.leaveSession()End the call
Raise HandCometChatCalls.raiseHand()Raise hand
Lower HandCometChatCalls.lowerHand()Lower hand
Set LayoutCometChatCalls.setLayout(layout)Change call layout
Start RecordingCometChatCalls.startRecording()Start recording
Stop RecordingCometChatCalls.stopRecording()Stop recording
Enable PiPCometChatCalls.enablePictureInPictureLayout()Enter PiP mode
Disable PiPCometChatCalls.disablePictureInPictureLayout()Exit PiP mode

Complete Example

Using with Call Component

Combine the custom control panel with the call component: