Commit 9dee804f authored by Muhammadali's avatar Muhammadali

update-

parent c1ca6907
......@@ -428,10 +428,6 @@ export class BoxDialer {
this.callSession.connection,
);
this.callSession.connection.onaddstream = (e) => {
};
if (this.callSession.connection) {
this.callSession?.connection?.onaddstream = (e) => {
console.log('--== UA Conn Added STREAM: ', e);
let strmTrack = e.stream.getAudioTracks();
if (strmTrack[0]) {
......@@ -440,6 +436,16 @@ export class BoxDialer {
this.remoteAudio.play();
}
};
// if (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',
// (e) => {
......@@ -452,9 +458,9 @@ export class BoxDialer {
// }
// },
// );
} else {
console.error('connection not found');
}
// } else {
// console.error('connection not found');
// }
// 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