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
fix(LargeVideoManager): enable video problems filter on VideoContainer
paweldomasecfc05bcc8c6
diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.jsindex f873de0a58..92e1531908 100644--- a/modules/UI/shared_video/SharedVideo.js+++ b/modules/UI/shared_video/SharedVideo.js@@ -567,10 +567,6 @@ class SharedVideoContainer extends LargeContainer {this.player = player;}- get $video () {- return this.$iframe;- }-show () {let self = this;return new Promise(resolve => {diff --git a/modules/UI/videolayout/LargeVideoManager.js b/modules/UI/videolayout/LargeVideoManager.jsindex 8c145e77eb..54bc097ef7 100644--- a/modules/UI/videolayout/LargeVideoManager.js+++ b/modules/UI/videolayout/LargeVideoManager.js@@ -213,8 +213,7 @@ export default class LargeVideoManager {* @param enable <tt>true</tt> to enable, <tt>false</tt> to disable*/enableVideoProblemFilter (enable) {- let container = this.getContainer(this.state);- container.$video.toggleClass("videoProblemFilter", enable);+ this.videoContainer.enableVideoProblemFilter(enable);}/**diff --git a/modules/UI/videolayout/VideoContainer.js b/modules/UI/videolayout/VideoContainer.jsindex 99cef5e701..2043344c2a 100644--- a/modules/UI/videolayout/VideoContainer.js+++ b/modules/UI/videolayout/VideoContainer.js@@ -184,6 +184,17 @@ export class VideoContainer extends LargeContainer {this.$video[0].onplay = onPlay;}+ /**+ * Enables a filter on the video which indicates that there are some+ * problems with the media connection.+ *+ * @param {boolean} enable <tt>true</tt> if the filter is to be enabled or+ * <tt>false</tt> otherwise.+ */+ enableVideoProblemFilter (enable) {+ this.$video.toggleClass("videoProblemFilter", enable);+ }+/*** Get size of video element.* @returns {{width, height}}