Przeglądaj źródła

Shows dialog when lib-jitsi-meet report microphone issues

j8
hristoterezov 9 lat temu
rodzic
commit
4c9b6ce193
3 zmienionych plików z 17 dodań i 1 usunięć
  1. 4
    1
      conference.js
  2. 1
    0
      lang/main.json
  3. 12
    0
      modules/UI/UI.js

+ 4
- 1
conference.js Wyświetl plik

@@ -857,6 +857,8 @@ export default {
857 857
 
858 858
         return promise.then(function () {
859 859
             if (stream) {
860
+                stream.on(TrackEvents.TRACK_AUDIO_NOT_WORKING,
861
+                    APP.UI.showAudioNotWorkingDialog);
860 862
                 return room.addTrack(stream);
861 863
             }
862 864
         }).then(() => {
@@ -1162,7 +1164,8 @@ export default {
1162 1164
         });
1163 1165
 
1164 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 1169
             APP.UI.markRoomLocked(state);
1167 1170
         });
1168 1171
 

+ 1
- 0
lang/main.json Wyświetl plik

@@ -263,6 +263,7 @@
263 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 264
         "micNotFoundError": "Microphone was not found.",
265 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 267
         "goToStore": "Go to the webstore",
267 268
         "externalInstallationTitle": "Extension required",
268 269
         "externalInstallationMsg": "You need to install our desktop sharing extension."

+ 12
- 0
modules/UI/UI.js Wyświetl plik

@@ -1392,6 +1392,18 @@ UI.showDeviceErrorDialog = function (micError, cameraError) {
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 1407
 UI.updateDevicesAvailability = function (id, devices) {
1396 1408
     VideoLayout.setDeviceAvailabilityIcons(id, devices);
1397 1409
 };

Ładowanie…
Anuluj
Zapisz