Commit 2559affc authored by Muhammadali's avatar Muhammadali

update-

parent 59ccbaa7
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.2.8", "version": "4.2.9",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -416,6 +416,22 @@ export class BoxDialer { ...@@ -416,6 +416,22 @@ export class BoxDialer {
data, data,
); );
this.callSession = data.session; 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({ this.setGuiPhoneState({
funcName: 'modalState', funcName: 'modalState',
funcParam: { funcParam: {
...@@ -423,30 +439,6 @@ export class BoxDialer { ...@@ -423,30 +439,6 @@ export class BoxDialer {
callType: 'connected', 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({ 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