Commit 7514ea4a authored by Muhammadali's avatar Muhammadali

update-

parent 5186183b
...@@ -400,7 +400,11 @@ export class BoxDialer { ...@@ -400,7 +400,11 @@ export class BoxDialer {
}); });
this.ua.on('newRTCSession', (data) => { this.ua.on('newRTCSession', (data) => {
console.log('%c newRTCSession: ', 'font-size: 22px; color: yellow;', data); console.log(
'%c newRTCSession: ',
'font-size: 22px; color: yellow;',
data,
);
this.callSession = data.session; this.callSession = data.session;
this.setGuiPhoneState({ this.setGuiPhoneState({
funcName: 'modalState', funcName: 'modalState',
...@@ -409,15 +413,15 @@ export class BoxDialer { ...@@ -409,15 +413,15 @@ export class BoxDialer {
callType: 'connected', callType: 'connected',
}, },
}); });
this.callSession?.connection?.onaddstream = (e) => { // this.callSession?.connection?.onaddstream = (e) => {
console.log('--== UA Conn Added STREAM: ', e); // console.log('--== UA Conn Added STREAM: ', e);
let strmTrack = e.stream.getAudioTracks(); // let strmTrack = e.stream.getAudioTracks();
if (strmTrack[0]) { // if (strmTrack[0]) {
let rmMediaStream = new MediaStream([strmTrack[0]]); // let rmMediaStream = new MediaStream([strmTrack[0]]);
this.remoteAudio.srcObject = rmMediaStream; // this.remoteAudio.srcObject = rmMediaStream;
this.remoteAudio.play(); // this.remoteAudio.play();
} // }
}; // };
// innerCallerModal; // innerCallerModal;
this.onSipStateChange.innerCallerModal({ this.onSipStateChange.innerCallerModal({
bool: true, bool: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment