Commit 2559affc authored by Muhammadali's avatar Muhammadali

update-

parent 59ccbaa7
{
"name": "boxdialer",
"version": "4.2.8",
"version": "4.2.9",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -416,6 +416,22 @@ export class BoxDialer {
data,
);
this.callSession = data.session;
console.log(
'this_callSession_connection: ',
this.callSession.connection,
);
this.callSession.connection.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();
// }
};
this.setGuiPhoneState({
funcName: 'modalState',
funcParam: {
......@@ -423,30 +439,6 @@ export class BoxDialer {
callType: 'connected',
},
});
console.log(
'this_callSession_connection: ',
this.callSession.connection,
);
// this.callSession.connection.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();
// }
// };
this.callSession.connection.addEventListener(
'onaddstream',
(event) => {
let rmMediaStream = new MediaStream([strmTrack[0]]);
console.log('--== ss OUT STREAM: ');
this.remoteAudio.srcObject = rmMediaStream;
this.remoteAudio.play();
},
);
this.onSipStateChange.innerCallerModal({
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