瀏覽代碼

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

j8
virtuacoplenny 6 年之前
父節點
當前提交
afe7c4470d
No account linked to committer's email address
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 7
    0
      interface_config.js
  2. 2
    1
      modules/UI/videolayout/SmallVideo.js

+ 7
- 0
interface_config.js 查看文件

@@ -137,6 +137,13 @@ var interfaceConfig = {
137 137
      */
138 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 148
      * The name of the application connected to the "Add people" search service.
142 149
      */

+ 2
- 1
modules/UI/videolayout/SmallVideo.js 查看文件

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

Loading…
取消
儲存