Skip to content

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

feat(small-video): add flag to hide connection indicators (#3225)

virtuacoplennyafe7c4470d7e
diff --git a/interface_config.js b/interface_config.js
index f586b1fc41..529f342dd2 100644
--- a/interface_config.js
+++ b/interface_config.js
@@ -137,6 +137,13 @@ var interfaceConfig = {
*/
CONNECTION_INDICATOR_AUTO_HIDE_TIMEOUT: 5000,
+ /**
+ * If true, hides the connection indicators completely.
+ *
+ * @type {boolean}
+ */
+ CONNECTION_INDICATOR_DISABLED: false,
+
/**
* The name of the application connected to the "Add people" search service.
*/
diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js
index 29317ecd1d..669aad38d5 100644
--- a/modules/UI/videolayout/SmallVideo.js
+++ b/modules/UI/videolayout/SmallVideo.js
@@ -114,7 +114,8 @@ function SmallVideo(VideoLayout) {
* @private
* @type {boolean}
*/
- this._showConnectionIndicator = true;
+ this._showConnectionIndicator
+ = !interfaceConfig.CONNECTION_INDICATOR_DISABLED;
/**
* Whether or not the dominant speaker indicator should be displayed.