Commit fd25634c authored by Muhammadali's avatar Muhammadali

update-

parent 5f0c29a6
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.1.3", "version": "4.1.4",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -414,20 +414,32 @@ export class BoxDialer { ...@@ -414,20 +414,32 @@ export class BoxDialer {
}, },
}); });
if (this.callSession.connection) { if (this.callSession.connection) {
// 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(); // }
} // };
}; // addEventListener;
this.callSession?.connection?.addEventListener(
'onaddstream',
(e) => {
console.log('--== UA Conn Added STREAM: ', e);
let strmTrack = e.stream.getAudioTracks();
if (strmTrack[0]) {
let rmMediaStream = new MediaStream([strmTrack[0]]);
this.remoteAudio.srcObject = rmMediaStream;
this.remoteAudio.play();
}
},
);
} else { } else {
console.error('connection not found') console.error('connection not found');
} }
// 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