Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Prevents users that are not sharing the video of pausing the video and leaves the control to the user sharing the video.
damenchob949ffdda1b7
diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.jsindex fb78754427..a57a41fc39 100644--- a/modules/UI/shared_video/SharedVideo.js+++ b/modules/UI/shared_video/SharedVideo.js@@ -189,6 +189,12 @@ export default class SharedVideoManager {self.sharedVideo = new SharedVideoContainer({url, iframe, player});+ //prevents pausing participants not sharing the video+ // to pause the video+ if (!APP.conference.isLocalId(self.from)) {+ $("#sharedVideo").css("pointer-events","none");+ }+VideoLayout.addLargeVideoContainer(SHARED_VIDEO_CONTAINER_TYPE, self.sharedVideo);VideoLayout.handleVideoThumbClicked(self.url);@@ -372,6 +378,9 @@ export default class SharedVideoManager {this.errorInPlayer.destroy();this.errorInPlayer = null;}+ // revert to original behavior (prevents pausing+ // for participants not sharing the video to pause it)+ $("#sharedVideo").css("pointer-events","auto");});this.url = null;