Commit c1ca6907 authored by Muhammadali's avatar Muhammadali

update-

parent 401fdec5
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.2.1", "version": "4.2.2",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -427,33 +427,34 @@ export class BoxDialer { ...@@ -427,33 +427,34 @@ export class BoxDialer {
'this_callSession_connection: ', 'this_callSession_connection: ',
this.callSession.connection, this.callSession.connection,
); );
this.callSession.connection.onaddstream = () => {}; this.callSession.connection.onaddstream = (e) => {
// if (this.callSession.connection) {
// this.callSession?.connection?.onaddstream = (e) => { };
// console.log('--== UA Conn Added STREAM: ', e); if (this.callSession.connection) {
// let strmTrack = e.stream.getAudioTracks(); this.callSession?.connection?.onaddstream = (e) => {
// if (strmTrack[0]) { console.log('--== UA Conn Added STREAM: ', e);
// let rmMediaStream = new MediaStream([strmTrack[0]]); let strmTrack = e.stream.getAudioTracks();
// this.remoteAudio.srcObject = rmMediaStream; if (strmTrack[0]) {
// this.remoteAudio.play(); let rmMediaStream = new MediaStream([strmTrack[0]]);
// } this.remoteAudio.srcObject = rmMediaStream;
// }; this.remoteAudio.play();
// addEventListener; }
// this.callSession?.connection?.addEventListener( };
// 'onaddstream', // this.callSession?.connection?.addEventListener(
// (e) => { // 'onaddstream',
// console.log('--== UA Conn Added STREAM: ', e); // (e) => {
// let strmTrack = e.stream.getAudioTracks(); // console.log('--== UA Conn Added STREAM: ', e);
// if (strmTrack[0]) { // let strmTrack = e.stream.getAudioTracks();
// let rmMediaStream = new MediaStream([strmTrack[0]]); // if (strmTrack[0]) {
// this.remoteAudio.srcObject = rmMediaStream; // let rmMediaStream = new MediaStream([strmTrack[0]]);
// this.remoteAudio.play(); // this.remoteAudio.srcObject = rmMediaStream;
// } // this.remoteAudio.play();
// }, // }
// ); // },
// } else { // );
// console.error('connection not found'); } else {
// } console.error('connection not found');
}
// innerCallerModal; // innerCallerModal;
this.onSipStateChange.innerCallerModal({ this.onSipStateChange.innerCallerModal({
......
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