Commit 6669a93a authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't use high-quality audio for screenshare.

We used to set high-quality audio by default for screenshare,
but that makes the video blurry under bad network conditions.
Obey the hqaudio setting for all streams.
parent af462329
...@@ -1223,7 +1223,7 @@ function setUpStream(c, stream) { ...@@ -1223,7 +1223,7 @@ function setUpStream(c, stream) {
}); });
} }
} else { } else {
if(c.label !== 'camera' || settings.hqaudio) { if(settings.hqaudio) {
encodings.push({ encodings.push({
maxBitrate: hqAudioRate, maxBitrate: hqAudioRate,
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment