Moderator: Mute all screen sharing

This commit is contained in:
Luca committed 2020-05-13 10:42:03 +02:00
1 parent 69244bdf12
commit f54ed84edb
6 files changed
+59 -1

No files matched your search

+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))