Faster Integration with UI KitsIf you’re using CometChat UI Kits, voice and video calling can be quickly integrated:
- Incoming & outgoing call screens
- Call buttons with one-tap calling
- Call logs with history
Install the SDK
Install the CometChat Calls SDK using npm or yarn:- npm
- yarn
Import the SDK
Import theCometChatCalls class in your JavaScript or TypeScript file:
Initialize CometChat Calls
Theinit() method initializes the SDK with your app credentials. Call this method once when your application starts.
CallAppSettings
The initialization requires a configuration object with the following properties:init() method returns an object with:
Browser Requirements
The Calls SDK requires a modern browser with WebRTC support:HTTPS is required for camera and microphone access in production. Localhost is exempt from this requirement during development.