Update
This commit is contained in:
parent
f3ba6d37c2
commit
14af825eab
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user