Hide Default Control Panel
Hide the built-in control panel when joining a session:Build Custom Controls
With the control panel hidden, use the SDK’s action methods to build your own UI:Audio Controls
Video Controls
Screen Sharing
Leave Session
Track State with Events
Listen to events to keep your custom UI in sync:Hide Individual Buttons
Instead of hiding the entire control panel, you can hide specific buttons:Complete Example
Available Actions
All these methods can be used to build custom controls:| Action | Method |
|---|---|
| Mute audio | CometChatCalls.muteAudio() |
| Unmute audio | CometChatCalls.unMuteAudio() |
| Pause video | CometChatCalls.pauseVideo() |
| Resume video | CometChatCalls.resumeVideo() |
| Start screen share | CometChatCalls.startScreenSharing() |
| Stop screen share | CometChatCalls.stopScreenSharing() |
| Start recording | CometChatCalls.startRecording() |
| Stop recording | CometChatCalls.stopRecording() |
| Raise hand | CometChatCalls.raiseHand() |
| Lower hand | CometChatCalls.lowerHand() |
| Change layout | CometChatCalls.setLayout(layout) |
| Leave session | CometChatCalls.leaveSession() |