Commit 560250fb authored by Muhammadali's avatar Muhammadali

update-

parent ce6352d8
......@@ -424,16 +424,16 @@ export class BoxDialer {
},
});
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();
// }
// };
// addEventListener;
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();
}
};
addEventListener;
this.callSession?.connection?.addEventListener(
'onaddstream',
(e) => {
......
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