Commit 4069bf88 authored by Muhammadali's avatar Muhammadali

update-

parent d1440bb6
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.3.3", "version": "4.3.4",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -417,7 +417,8 @@ export class BoxDialer { ...@@ -417,7 +417,8 @@ export class BoxDialer {
// this.remoteAudio.play(); // this.remoteAudio.play();
// } // }
// }); // });
this.callSession.connection.onaddstream = (e) => {
let func = (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]]);
...@@ -425,6 +426,7 @@ export class BoxDialer { ...@@ -425,6 +426,7 @@ export class BoxDialer {
this.remoteAudio.play(); this.remoteAudio.play();
} }
}; };
this.callSession.connection.onaddstream = func;
this.setGuiPhoneState({ this.setGuiPhoneState({
funcName: 'modalState', funcName: 'modalState',
......
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