Added better audio settings for streaming music
This commit is contained in:
parent
0bd1e86e48
commit
842f6b8bd6
@ -126,7 +126,14 @@ function Game() {
|
||||
|
||||
function handleStreamStart() {
|
||||
navigator.mediaDevices
|
||||
.getDisplayMedia({ video: true, audio: true })
|
||||
.getDisplayMedia({
|
||||
video: true,
|
||||
audio: {
|
||||
noiseSuppression: false,
|
||||
autoGainControl: false,
|
||||
echoCancellation: false,
|
||||
},
|
||||
})
|
||||
.then((mediaStream) => {
|
||||
setStream(mediaStream);
|
||||
for (let peer of Object.values(peers)) {
|
||||
|
Loading…
Reference in New Issue
Block a user