소스 검색

Handles talk while muted event.

master
damencho 8 년 전
부모
커밋
e7e7c7d5a0
2개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      conference.js
  2. 1
    0
      lang/main.json

+ 6
- 0
conference.js 파일 보기

@@ -17,6 +17,7 @@ import mediaDeviceHelper from './modules/devices/mediaDeviceHelper';
17 17
 import {reportError} from './modules/util/helpers';
18 18
 
19 19
 import UIErrors from './modules/UI/UIErrors';
20
+import UIUtil from './modules/UI/util/UIUtil';
20 21
 
21 22
 const ConnectionEvents = JitsiMeetJS.events.connection;
22 23
 const ConnectionErrors = JitsiMeetJS.errors.connection;
@@ -1097,6 +1098,11 @@ export default {
1097 1098
             APP.UI.setAudioLevel(id, lvl);
1098 1099
         });
1099 1100
 
1101
+        room.on(ConferenceEvents.TALK_WHILE_MUTED, () => {
1102
+            APP.UI.showToolbar();
1103
+            UIUtil.animateShowElement($("#talkWhileMutedPopup"), true, 5000);
1104
+        });
1105
+
1100 1106
         room.on(ConferenceEvents.IN_LAST_N_CHANGED, (inLastN) => {
1101 1107
             //FIXME
1102 1108
             if (config.muteLocalVideoIfNotInLastN) {

+ 1
- 0
lang/main.json 파일 보기

@@ -91,6 +91,7 @@
91 91
         "dialpad": "Show dialpad",
92 92
         "sharedVideoMutedPopup": "Your shared video has been muted so<br/>that you can talk to the other participants.",
93 93
         "micMutedPopup": "Your microphone has been muted so that you<br/>would fully enjoy your shared video.",
94
+        "talkWhileMutedPopup": "Your microphone is muted <br/>while you are trying to talk.",
94 95
         "unableToUnmutePopup": "You cannot un-mute while the shared video is on.",
95 96
         "cameraDisabled": "Camera is not available",
96 97
         "micDisabled": "Microphone is not available",

Loading…
취소
저장