Moderator: Mute all screen sharing

This commit is contained in:
Luca authored and Mészáros Mihály committed 2020-05-18 09:52:19 +02:00
1 parent e1f5f804b0
commit 13c38cecfd
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))