Issue in Call Recording Using Java Script

I want To record a Audio Call, but give the errors

// let FILE_NAME=recording_type_call_id_timestamp
var recording_Date= new Date().toISOString();
// let FILE_NAME=sessionStorage.getItem(“call_id”)+"#"+sessionStorage.getItem(“astrologer_user_id”)+"#"+sessionStorage.getItem(“call_user_id”)+"#"+recording_Date;
let FILE_NAME=“Shubham.mp4”;
// var service_types=SendBirdCall.RecordingType.LOCAL_REMOTE_AUDIOS;
// let service_types1=document.getElementById(‘remote_audio_element_id’);

var options = {type: SendBirdCall.RecordingType.REMOTE_AUDIO_ONLY, callId: sessionStorage.getItem("call_id"), fileName: FILE_NAME};

// let options = {type: service_types, callId: sessionStorage.getItem(“call_id”), fileName: FILE_NAME};
// Records remote user’s audio and video and download it under the name FILE_NAME.mp4
console.log(options)
const recordingId = call.startRecording(options);
console.log(recordingId);
if(recordingId){
console.log(“Recording start succeed.”);
console.log("NEW " +recordingId);

// Recording start succeed.

} else {
console.log(“Recording start failed.”);
// Recording start failed.
}

Error

{type: “remove_audio_only”, callId: “D5E1945B-466B-4565-AD30-B85BF89B7B1F”, fileName: “Shubham.mp4”}
SendBirdCall.min.js:6 Uncaught TypeError: Cannot read property ‘srcObject’ of null
at new i (SendBirdCall.min.js:6)
at e.value (SendBirdCall.min.js:6)
at s.value (SendBirdCall.min.js:6)
at s.call.onConnected (call.html:427)
at s.value (SendBirdCall.min.js:6)
at a.value (SendBirdCall.min.js:6)
at t.value (SendBirdCall.min.js:6)
at t.value (SendBirdCall.min.js:6)
at a.value (SendBirdCall.min.js:6)
at s.value (SendBirdCall.min.js:6)
i @ SendBirdCall.min.js:6
value @ SendBirdCall.min.js:6
value @ SendBirdCall.min.js:6
call.onConnected @ call.html:427
value @ SendBirdCall.min.js:6
value @ SendBirdCall.min.js:6
value @ SendBirdCall.min.js:6
value @ SendBirdCall.min.js:6
value @ SendBirdCall.min.js:6
value @ SendBirdCall.min.js:6
e.oniceconnectionstatechange @ SendBirdCall.min.js:6