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() {
case 'off':
return false;
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;
let bps = getMaxVideoThroughput();
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