Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Merge pull request #557 from damencho/enables-sharedvideo-for-all-participants

yanas740c920cbbdb
diff --cc conference.js
index 3d5b270505,e71db8db5c..2dd8605e0c
--- a/conference.js
+++ b/conference.js
@@@ -1114,18 -1114,8 +1114,8 @@@ export default
room.addCommandListener(
Commands.SHARED_VIDEO, ({value, attributes}, id) => {
- // if we are not the moderator or
- // the command is coming from a user which is not the moderator
- if (!(this.isLocalId(id) && room.isModerator())
- && !this.isParticipantModerator(id))
- {
- console.warn('Received shared video command ' +
- 'not from moderator');
- return;
- }
-
if (attributes.state === 'stop') {
- APP.UI.stopSharedVideo(id, attributes);
+ APP.UI.stopSharedVideo(id);
} else if (attributes.state === 'start') {
APP.UI.showSharedVideo(id, value, attributes);
} else if (attributes.state === 'playing'