Browse Source

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

master
virtuacoplenny 7 years ago
parent
commit
afe7c4470d
No account linked to committer's email address
2 changed files with 9 additions and 1 deletions
  1. 7
    0
      interface_config.js
  2. 2
    1
      modules/UI/videolayout/SmallVideo.js

+ 7
- 0
interface_config.js View File

137
      */
137
      */
138
     CONNECTION_INDICATOR_AUTO_HIDE_TIMEOUT: 5000,
138
     CONNECTION_INDICATOR_AUTO_HIDE_TIMEOUT: 5000,
139
 
139
 
140
+    /**
141
+     * If true, hides the connection indicators completely.
142
+     *
143
+     * @type {boolean}
144
+     */
145
+    CONNECTION_INDICATOR_DISABLED: false,
146
+
140
     /**
147
     /**
141
      * The name of the application connected to the "Add people" search service.
148
      * The name of the application connected to the "Add people" search service.
142
      */
149
      */

+ 2
- 1
modules/UI/videolayout/SmallVideo.js View File

114
      * @private
114
      * @private
115
      * @type {boolean}
115
      * @type {boolean}
116
      */
116
      */
117
-    this._showConnectionIndicator = true;
117
+    this._showConnectionIndicator
118
+        = !interfaceConfig.CONNECTION_INDICATOR_DISABLED;
118
 
119
 
119
     /**
120
     /**
120
      * Whether or not the dominant speaker indicator should be displayed.
121
      * Whether or not the dominant speaker indicator should be displayed.

Loading…
Cancel
Save