CometChatCalls.OngoingCallListener
constructor 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:
CallSettings
class 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 startSession()
method to start the call.
The options available for recording of calls are:
Setting | Description |
---|---|
showRecordingButton(showRecordingButton: boolean) | If set to true it displays the Recording button in the button Layout. if set to false it hides the Recording button in the button Layout. Default value = false |
startRecordingOnCallStart(startRecordingOnCallStart: boolean) | If set to true call recording will start as soon as the call is started. if set to false call recording will not start as soon as the call is started. Default value = false |
startRecording()
method to start call recording.
stopRecording()
method to stop call recording.