Moderator: Mute all screen sharing

This commit is contained in:
Luca
2020-05-13 10:42:03 +02:00
parent 69244bdf12
commit f54ed84edb
6 changed files with 59 additions and 1 deletions
+13
View File
@@ -1441,6 +1441,19 @@ class Room extends EventEmitter
break;
}
case 'moderator:stopAllScreenSharing':
{
if (!this._hasPermission(peer, MODERATE_ROOM))
throw new Error('peer not authorized');
// Spread to others
this._notification(peer.socket, 'moderator:stopScreenSharing', null, true);
cb();
break;
}
case 'moderator:stopScreenSharing':
{
if (!this._hasPermission(peer, MODERATE_ROOM))