Added better audio settings for streaming music
This commit is contained in:
parent
0bd1e86e48
commit
842f6b8bd6
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user