Bläddra i källkod

Merge pull request #918 from kkrisstoff/make-the-star-configurable

disable_star_indicator added
j8
Дамян Минков 9 år sedan
förälder
incheckning
fbd2879aa3
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 2
    1
      interface_config.js
  2. 3
    2
      modules/UI/videolayout/SmallVideo.js

+ 2
- 1
interface_config.js Visa fil

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
 };

+ 3
- 2
modules/UI/videolayout/SmallVideo.js Visa fil

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";
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
 

Laddar…
Avbryt
Spara