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
Disables switching to dominant speaker when Etherpad is shown on large video.
damencho2b26580a7cc8
diff --git a/modules/UI/etherpad/Etherpad.js b/modules/UI/etherpad/Etherpad.jsindex b7feff895e..01979eb07e 100644--- a/modules/UI/etherpad/Etherpad.js+++ b/modules/UI/etherpad/Etherpad.js@@ -133,6 +133,13 @@ class Etherpad extends LargeContainer {});});}++ /**+ * @return {boolean} do not switch on dominant speaker event if on stage.+ */+ stayOnStage () {+ return true;+ }}/**diff --git a/modules/UI/videolayout/LargeContainer.js b/modules/UI/videolayout/LargeContainer.jsindex cc80f3f422..0f0dd242d1 100644--- a/modules/UI/videolayout/LargeContainer.js+++ b/modules/UI/videolayout/LargeContainer.js@@ -54,4 +54,11 @@ export default class LargeContainer {showAvatar (show) {}+ /**+ * Whether current container needs to be switched on dominant speaker event+ * when the container is on stage.+ * @return {boolean}+ */+ stayOnStage () {+ }}diff --git a/modules/UI/videolayout/LargeVideo.js b/modules/UI/videolayout/LargeVideo.jsindex 88d74cd65e..494062af98 100644--- a/modules/UI/videolayout/LargeVideo.js+++ b/modules/UI/videolayout/LargeVideo.js@@ -349,6 +349,13 @@ class VideoContainer extends LargeContainer {});});}++ /**+ * @return {boolean} switch on dominant speaker event if on stage.+ */+ stayOnStage () {+ return false;+ }}/**diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.jsindex 31adc8ae15..22e6e16ef0 100644--- a/modules/UI/videolayout/VideoLayout.js+++ b/modules/UI/videolayout/VideoLayout.js@@ -524,7 +524,9 @@ var VideoLayout = {// since we don't want to switch to local video.// Update the large video if the video source is already available,// otherwise wait for the "videoactive.jingle" event.- if (!focusedVideoResourceJid && remoteVideo.hasVideoStarted()) {+ if (!focusedVideoResourceJid+ && remoteVideo.hasVideoStarted()+ && !this.getCurrentlyOnLargeContainer().stayOnStage()) {this.updateLargeVideo(id);}},@@ -889,6 +891,14 @@ var VideoLayout = {return this.isLargeContainerTypeVisible(VideoContainerType);},+ /**+ * @return {LargeContainer} the currently displayed container on large+ * video.+ */+ getCurrentlyOnLargeContainer () {+ return largeVideo.getContainer(largeVideo.state);+ },+isCurrentlyOnLarge (id) {return largeVideo && largeVideo.id === id;},