From 14af825eab10561a3310767d02274cd2bcdea480 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 22 Dec 2022 09:26:37 +0200 Subject: [PATCH] Update --- public/bundle.js | 37 +++++++++++++++++++------------------ public/index.js | 37 +++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index 8fb2456..4ff956e 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20811,6 +20811,7 @@ const connectRecvTransport = async () => { if (audioParams) { console.log('❗ Have AUDIO stream to consume'); let audioTrack = await getAudioTrask(audioParams) + console.log('audioTrack', audioTrack); stream.addTrack(audioTrack) } else { console.log('❗ Don\'t have AUDIO stream to consume'); @@ -20866,24 +20867,24 @@ const getAudioTrask = async (audioParams) => { const audioTrack = consumerAudio.track - audioTrack.applyConstraints({ - audio: { - advanced: [ - { - echoCancellation: {exact: true} - }, - { - autoGainControl: {exact: true} - }, - { - noiseSuppression: {exact: true} - }, - { - highpassFilter: {exact: true} - } - ] - } - }) + // audioTrack.applyConstraints({ + // audio: { + // advanced: [ + // { + // echoCancellation: {exact: true} + // }, + // { + // autoGainControl: {exact: true} + // }, + // { + // noiseSuppression: {exact: true} + // }, + // { + // highpassFilter: {exact: true} + // } + // ] + // } + // }) return audioTrack } diff --git a/public/index.js b/public/index.js index fee164f..3bba0a4 100644 --- a/public/index.js +++ b/public/index.js @@ -453,6 +453,7 @@ const connectRecvTransport = async () => { if (audioParams) { console.log('❗ Have AUDIO stream to consume'); let audioTrack = await getAudioTrask(audioParams) + console.log('audioTrack', audioTrack); stream.addTrack(audioTrack) } else { console.log('❗ Don\'t have AUDIO stream to consume'); @@ -508,24 +509,24 @@ const getAudioTrask = async (audioParams) => { const audioTrack = consumerAudio.track - audioTrack.applyConstraints({ - audio: { - advanced: [ - { - echoCancellation: {exact: true} - }, - { - autoGainControl: {exact: true} - }, - { - noiseSuppression: {exact: true} - }, - { - highpassFilter: {exact: true} - } - ] - } - }) + // audioTrack.applyConstraints({ + // audio: { + // advanced: [ + // { + // echoCancellation: {exact: true} + // }, + // { + // autoGainControl: {exact: true} + // }, + // { + // noiseSuppression: {exact: true} + // }, + // { + // highpassFilter: {exact: true} + // } + // ] + // } + // }) return audioTrack }