浏览代码

disable_star_indicator added

j8
Kostiantyn Pashura 8 年前
父节点
当前提交
82ebfd9945
共有 2 个文件被更改,包括 8 次插入6 次删除
  1. 2
    1
      interface_config.js
  2. 6
    5
      modules/UI/videolayout/SmallVideo.js

+ 2
- 1
interface_config.js 查看文件

40
     REMOTE_THUMBNAIL_RATIO_WIDTH: 1,
40
     REMOTE_THUMBNAIL_RATIO_WIDTH: 1,
41
     REMOTE_THUMBNAIL_RATIO_HEIGHT: 1,
41
     REMOTE_THUMBNAIL_RATIO_HEIGHT: 1,
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
 };
45
 };

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

1
-/* global $, APP, JitsiMeetJS */
2
-/* jshint -W101 */
1
+/* global $, APP, JitsiMeetJS, interfaceConfig */
3
 import Avatar from "../avatar/Avatar";
2
 import Avatar from "../avatar/Avatar";
4
 import UIUtil from "../util/UIUtil";
3
 import UIUtil from "../util/UIUtil";
5
 import UIEvents from "../../../service/UI/UIEvents";
4
 import UIEvents from "../../../service/UI/UIEvents";
222
 
221
 
223
     audioMutedSpan = document.createElement('span');
222
     audioMutedSpan = document.createElement('span');
224
     audioMutedSpan.className = 'audioMuted toolbar-icon';
223
     audioMutedSpan.className = 'audioMuted toolbar-icon';
225
-    
224
+
226
     UIUtil.setTooltip(audioMutedSpan,
225
     UIUtil.setTooltip(audioMutedSpan,
227
         "videothumbnail.mute",
226
         "videothumbnail.mute",
228
         "top");
227
         "top");
277
 
276
 
278
     var mutedIndicator = document.createElement('i');
277
     var mutedIndicator = document.createElement('i');
279
     mutedIndicator.className = 'icon-camera-disabled';
278
     mutedIndicator.className = 'icon-camera-disabled';
280
-    
279
+
281
     UIUtil.setTooltip(mutedIndicator,
280
     UIUtil.setTooltip(mutedIndicator,
282
         "videothumbnail.videomute",
281
         "videothumbnail.videomute",
283
         "top");
282
         "top");
284
-    
283
+
285
     videoMutedSpan.appendChild(mutedIndicator);
284
     videoMutedSpan.appendChild(mutedIndicator);
286
 
285
 
287
     return $('#' + this.videoSpanId + ' .videoMuted');
286
     return $('#' + this.videoSpanId + ' .videoMuted');
291
  * Creates the element indicating the moderator(owner) of the conference.
290
  * Creates the element indicating the moderator(owner) of the conference.
292
  */
291
  */
293
 SmallVideo.prototype.createModeratorIndicatorElement = function () {
292
 SmallVideo.prototype.createModeratorIndicatorElement = function () {
293
+    // don't create moderator indicator if DISABLE_FOCUS_INDICATOR is true
294
+    if (interfaceConfig.DISABLE_FOCUS_INDICATOR) return false;
294
     // Show moderator indicator
295
     // Show moderator indicator
295
     var indicatorSpan = $('#' + this.videoSpanId + ' .focusindicator');
296
     var indicatorSpan = $('#' + this.videoSpanId + ' .focusindicator');
296
 
297
 

正在加载...
取消
保存