Integration
Integration
You can integrate voice and video calling SDK to add calling functionality to your CometChat-enabled application.
To integrate, follow the below steps:
-
Obtain the API Keys
Navigate to the credentials section on the CometChat dashboard and take note of the app id, and region.
-
Integrate the SDK Files
Add the SDK files to your project's dependencies or libraries.
- CLI
npm install @cometchat/calls-sdk-javascript
-
Launch the component
Once the calls SDK is installed, follow with the initialise of the UI Kit, login the user and launch the UI components. The calls SDK integration will enable the CallButtons components in the menu of MessageHeader. This will allow users to initiate voice or video calls to other chat participants.
Additionally, all the components listed in the calls module are available for integration in your project.