[mirotalk] - #208 discard my audio

This commit is contained in:
Miroslav Pejic
2024-02-08 08:39:37 +01:00
parent f9a5673f81
commit 41373591c9
+4 -1
View File
@@ -5231,7 +5231,10 @@ async function changeAudioDestination(audioElement = false) {
const audioElements = audioMediaContainer.querySelectorAll('audio');
// change audio output for all participants audio
audioElements.forEach(async (audioElement) => {
await attachSinkId(audioElement, audioDestination);
// discard my own audio on this device, so I won't hear myself.
if (audioElement.id != 'myAudio') {
await attachSinkId(audioElement, audioDestination);
}
});
}
}