Commit d1440bb6 authored by Muhammadali's avatar Muhammadali

update-

parent 0ba6abb1
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.3.2", "version": "4.3.3",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -407,19 +407,24 @@ export class BoxDialer { ...@@ -407,19 +407,24 @@ export class BoxDialer {
'this_callSession_connection: ', 'this_callSession_connection: ',
this.callSession.connection, this.callSession.connection,
); );
this.callSession.connection.addEventListener('addstream', (e) => { // this.callSession.connection.addEventListener('addstream', (e) => {
console.log('--== UA Conn Added STREAM: ', 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();
// }
// });
this.callSession.connection.onaddstream = (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();
} }
}); };
// this.callSession.connection.onaddstream = (e) => {
// };
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