import { CometChatCalls } from '@cometchat/calls-sdk-ionic';
const audioOnly = false;
const defaultLayout = true;
const showRecordingButton = true;
const callListener = new CometChatCalls.OngoingCallListener({
onRecordingStarted: (event) => {
console.log("Call recording started:", event);
},
onRecordingStopped: (event) => {
console.log("Call recording stopped:", event);
}
});
const callSettings = new CometChatCalls.CallSettingsBuilder()
.enableDefaultLayout(defaultLayout)
.setIsAudioOnlyCall(audioOnly)
.showRecordingButton(showRecordingButton)
.setCallEventListener(callListener)
.build();
// Start the call using `startSession` method of `CometChatCalls`