If you wish to implement Call recording beta version. Please update your JavaScript Chat SDK version to v2.4.1-beta1
Implementation
Once you have decided to implement Default Calling or Direct Calling calling and followed the steps to implement them. Just few additional listeners and methods will help you quickly implement call recording in your app. You need to make changes in the CometChat.startCall method and add the required listeners for recording. Please make sure your callSettings is configured accordingly for Default Calling or Direct Calling. A basic example of how to make changes to implement recording for a direct call/ a default call:- Default Calling - JavaScript
- Direct Calling - JavaScript
Settings for call recording
TheCallSettingsclass allows you to customise the overall calling experience. The properties for the call/conference can be set using the CallSettingsBuilder class. This will eventually give you and object of the CallSettings class which you can pass to the startCall() method to start the call.
The mandatory parameters that are required to be present for any call/conference to work are:
- sessionId - The unique session Id for the call/conference session.
For the use case where you wish to align your own custom buttons and not use the default layout provided by CometChat, you can embed the buttons in your layout and use the below methods to perform the corresponding operations:
Start Recording
You can use the startRecording() method to start call recording.- Start Recording
Stop Recording
You can use the stopRecording() method to stop call recording.- Stop Recording