mirror of
https://github.com/jech/galene.git
synced 2024-11-23 00:55:58 +01:00
Don't consider system users when deciding simulcast.
This prevents simulcast from being switched on when we enable recording.
This commit is contained in:
parent
e74156e1b0
commit
662b8ad9b3
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue