Przeglądaj źródła

Adds additional check, avoids undefined error.

Needs an additional check for available devices after merging https://github.com/jitsi/lib-jitsi-meet/pull/139.
dev1
damencho 9 lat temu
rodzic
commit
011d71ed94
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      JitsiMediaDevices.js

+ 2
- 1
JitsiMediaDevices.js Wyświetl plik

95
      */
95
      */
96
     setAudioOutputDevice: function (deviceId) {
96
     setAudioOutputDevice: function (deviceId) {
97
 
97
 
98
-        if (RTC.getCurrentlyAvailableMediaDevices().length > 0)
98
+        if (RTC.getCurrentlyAvailableMediaDevices()
99
+            && RTC.getCurrentlyAvailableMediaDevices().length > 0)
99
         {
100
         {
100
             // if we have devices info report device to stats
101
             // if we have devices info report device to stats
101
             // normally this will not happen on startup as this method is called
102
             // normally this will not happen on startup as this method is called

Ładowanie…
Anuluj
Zapisz