Added better audio settings for streaming music

This commit is contained in:
Mitchell McCaffrey 2020-04-08 17:00:38 +10:00
parent 0bd1e86e48
commit 842f6b8bd6

View File

@ -126,7 +126,14 @@ function Game() {
function handleStreamStart() { function handleStreamStart() {
navigator.mediaDevices navigator.mediaDevices
.getDisplayMedia({ video: true, audio: true }) .getDisplayMedia({
video: true,
audio: {
noiseSuppression: false,
autoGainControl: false,
echoCancellation: false,
},
})
.then((mediaStream) => { .then((mediaStream) => {
setStream(mediaStream); setStream(mediaStream);
for (let peer of Object.values(peers)) { for (let peer of Object.values(peers)) {