Commit 662b8ad9 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't consider system users when deciding simulcast.

This prevents simulcast from being switched on when we enable
recording.
parent e74156e1
...@@ -1085,7 +1085,15 @@ function doSimulcast() { ...@@ -1085,7 +1085,15 @@ function doSimulcast() {
case 'off': case 'off':
return false; return false;
default: default:
if(Object.keys(serverConnection.users).length <= 2) let count = 0;
for(let n in serverConnection.users) {
if(!serverConnection.users[n].permissions["system"]) {
count++;
if(count > 2)
break;
}
}
if(count <= 2)
return false; return false;
let bps = getMaxVideoThroughput(); let bps = getMaxVideoThroughput();
return bps <= 0 || bps >= 2 * simulcastRate; return bps <= 0 || bps >= 2 * simulcastRate;
......
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