Browse Source

disable_star_indicator added

j8
Kostiantyn Pashura 8 years ago
parent
commit
82ebfd9945
2 changed files with 8 additions and 6 deletions
  1. 2
    1
      interface_config.js
  2. 6
    5
      modules/UI/videolayout/SmallVideo.js

+ 2
- 1
interface_config.js View File

@@ -40,5 +40,6 @@ var interfaceConfig = {
40 40
     REMOTE_THUMBNAIL_RATIO_WIDTH: 1,
41 41
     REMOTE_THUMBNAIL_RATIO_HEIGHT: 1,
42 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 View File

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

Loading…
Cancel
Save