ソースを参照

Shows dialog when lib-jitsi-meet report microphone issues

j8
hristoterezov 9年前
コミット
4c9b6ce193
3個のファイルの変更17行の追加1行の削除
  1. 4
    1
      conference.js
  2. 1
    0
      lang/main.json
  3. 12
    0
      modules/UI/UI.js

+ 4
- 1
conference.js ファイルの表示

857
 
857
 
858
         return promise.then(function () {
858
         return promise.then(function () {
859
             if (stream) {
859
             if (stream) {
860
+                stream.on(TrackEvents.TRACK_AUDIO_NOT_WORKING,
861
+                    APP.UI.showAudioNotWorkingDialog);
860
                 return room.addTrack(stream);
862
                 return room.addTrack(stream);
861
             }
863
             }
862
         }).then(() => {
864
         }).then(() => {
1162
         });
1164
         });
1163
 
1165
 
1164
         room.on(ConferenceEvents.LOCK_STATE_CHANGED, (state, error) => {
1166
         room.on(ConferenceEvents.LOCK_STATE_CHANGED, (state, error) => {
1165
-            console.log("Received channel password lock change: ", state, error);
1167
+            console.log("Received channel password lock change: ", state,
1168
+                error);
1166
             APP.UI.markRoomLocked(state);
1169
             APP.UI.markRoomLocked(state);
1167
         });
1170
         });
1168
 
1171
 

+ 1
- 0
lang/main.json ファイルの表示

263
         "micPermissionDeniedError": "You have not granted permission to use your microphone. You can still join the conference but others won't hear you. Use the camera button in the address bar to fix this.",
263
         "micPermissionDeniedError": "You have not granted permission to use your microphone. You can still join the conference but others won't hear you. Use the camera button in the address bar to fix this.",
264
         "micNotFoundError": "Microphone was not found.",
264
         "micNotFoundError": "Microphone was not found.",
265
         "micConstraintFailedError": "Yor microphone does not satisfy some of required constraints.",
265
         "micConstraintFailedError": "Yor microphone does not satisfy some of required constraints.",
266
+        "micNotSendingData": "Your microphone is not sending data. Please select another device from the settings menu or try to restart your browser / device.",
266
         "goToStore": "Go to the webstore",
267
         "goToStore": "Go to the webstore",
267
         "externalInstallationTitle": "Extension required",
268
         "externalInstallationTitle": "Extension required",
268
         "externalInstallationMsg": "You need to install our desktop sharing extension."
269
         "externalInstallationMsg": "You need to install our desktop sharing extension."

+ 12
- 0
modules/UI/UI.js ファイルの表示

1392
     }
1392
     }
1393
 };
1393
 };
1394
 
1394
 
1395
+/**
1396
+ * Shows error dialog that informs the user that no data is received from the
1397
+ * microphone.
1398
+ */
1399
+UI.showAudioNotWorkingDialog = function () {
1400
+    messageHandler.openMessageDialog(
1401
+        "dialog.error",
1402
+        "dialog.micNotSendingData",
1403
+        null,
1404
+        null);
1405
+};
1406
+
1395
 UI.updateDevicesAvailability = function (id, devices) {
1407
 UI.updateDevicesAvailability = function (id, devices) {
1396
     VideoLayout.setDeviceAvailabilityIcons(id, devices);
1408
     VideoLayout.setDeviceAvailabilityIcons(id, devices);
1397
 };
1409
 };

読み込み中…
キャンセル
保存