we can not listen to the conference earlier if it could.
the code fragment used is this
client.addEventListener('callStatus', evt => {
if (!call || call.callId === evt.call.callId) {
output(`callStatus event received. reason: ${evt.reason}, state: ${evt.call.state}`);
call = evt.call;
convList.disabled = !call.isRemote && call.isEstablished;
enableVideo.disabled = !(!call.isRemote && call.isEstablished);
enableScreenShare.disabled = !(!call.isRemote && call.isEstablished);
enableRecording.disabled = !(!call.isRemote && call.isEstablished);
// Set local video stream
localVideo.src = call.localVideoUrl || '';
// Enable video checkbox
if (call.isEstablished) {
//remoteAudio.src = call.remoteAudioUrl.substring(5);
remoteAudio.src = call.remoteAudioUrl;
// Set remote video streams (up to two in this example)
if (call.participants && call.participants.length > 0) {
remoteVideo1.src = call.participants[0].videoUrl;
}
if (call.participants && call.participants.length > 1) {
remoteVideo2.src = call.participants[1].videoUrl;
}
} else {
remoteAudio.src = '';
remoteVideo1.src = '';
remoteVideo2.src = '';
}
}
});
We need to know if something changed in the last month since it previously works