浏览代码

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
     // Enables feedback star animation.
42
     // Enables feedback star animation.
43
     ENABLE_FEEDBACK_ANIMATION: false,
43
     ENABLE_FEEDBACK_ANIMATION: false,
44
     DISABLE_FOCUS_INDICATOR: false,
44
     DISABLE_FOCUS_INDICATOR: false,
45
+    DISABLE_DOMINANT_SPEAKER_INDICATOR: false,
45
     AUDIO_LEVEL_PRIMARY_COLOR: "rgba(255,255,255,0.7)",
46
     AUDIO_LEVEL_PRIMARY_COLOR: "rgba(255,255,255,0.7)",
46
     AUDIO_LEVEL_SECONDARY_COLOR: "rgba(255,255,255,0.4)"
47
     AUDIO_LEVEL_SECONDARY_COLOR: "rgba(255,255,255,0.4)"
47
 };
48
 };

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

508
  * @param show whether to show or hide.
508
  * @param show whether to show or hide.
509
  */
509
  */
510
 SmallVideo.prototype.showDominantSpeakerIndicator = function (show) {
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
     if (!this.container) {
516
     if (!this.container) {
512
         console.warn( "Unable to set dominant speaker indicator - "
517
         console.warn( "Unable to set dominant speaker indicator - "
513
             + this.videoSpanId + " does not exist");
518
             + this.videoSpanId + " does not exist");

正在加载...
取消
保存