瀏覽代碼

feat(SmallVideo.js): New interface.config property for dominant speaker icon disable

j8
hristoterezov 8 年之前
父節點
當前提交
8fafd2b4ea
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 1
    0
      interface_config.js
  2. 5
    0
      modules/UI/videolayout/SmallVideo.js

+ 1
- 0
interface_config.js 查看文件

@@ -42,6 +42,7 @@ var interfaceConfig = { // eslint-disable-line no-unused-vars
42 42
     // Enables feedback star animation.
43 43
     ENABLE_FEEDBACK_ANIMATION: false,
44 44
     DISABLE_FOCUS_INDICATOR: false,
45
+    DISABLE_DOMINANT_SPEAKER_INDICATOR: false,
45 46
     AUDIO_LEVEL_PRIMARY_COLOR: "rgba(255,255,255,0.7)",
46 47
     AUDIO_LEVEL_SECONDARY_COLOR: "rgba(255,255,255,0.4)"
47 48
 };

+ 5
- 0
modules/UI/videolayout/SmallVideo.js 查看文件

@@ -508,6 +508,11 @@ SmallVideo.prototype.avatarChanged = function (avatarUrl) {
508 508
  * @param show whether to show or hide.
509 509
  */
510 510
 SmallVideo.prototype.showDominantSpeakerIndicator = function (show) {
511
+    // Don't create and show dominant speaker indicator if
512
+    // DISABLE_DOMINANT_SPEAKER_INDICATOR is true
513
+    if (interfaceConfig.DISABLE_DOMINANT_SPEAKER_INDICATOR)
514
+        return;
515
+
511 516
     if (!this.container) {
512 517
         console.warn( "Unable to set dominant speaker indicator - "
513 518
             + this.videoSpanId + " does not exist");

Loading…
取消
儲存