소스 검색

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

disable_star_indicator added
j8
Дамян Минков 9 년 전
부모
커밋
fbd2879aa3
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 2
    1
      interface_config.js
  2. 3
    2
      modules/UI/videolayout/SmallVideo.js

+ 2
- 1
interface_config.js 파일 보기

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

+ 3
- 2
modules/UI/videolayout/SmallVideo.js 파일 보기

@@ -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";
@@ -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…
취소
저장