Undiverge main branch from projector branch

This commit is contained in:
Koper
2023-10-12 14:12:34 +01:00
parent 35af25d4e8
commit 4e80e1cdb3
8 changed files with 395 additions and 2 deletions

View File

@@ -78,11 +78,23 @@ const useAudioDevice = () => {
deviceId: string,
): Promise<MediaStream | null> => {
try {
const urlParams = new URLSearchParams(window.location.search);
const noiseSuppression = urlParams.get("noiseSuppression") === "true";
const echoCancellation = urlParams.get("echoCancellation") === "true";
console.debug(
"noiseSuppression",
noiseSuppression,
"echoCancellation",
echoCancellation,
);
const stream = await navigator.mediaDevices.getUserMedia({
audio: {
deviceId,
noiseSuppression: false,
echoCancellation: false,
noiseSuppression,
echoCancellation,
},
});
return stream;