Przeglądaj źródła

Sets the real device ids of local tracks once they are created.

dev1
damencho 9 lat temu
rodzic
commit
208f17de9d
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11
    0
      JitsiMeetJS.js

+ 11
- 0
JitsiMeetJS.js Wyświetl plik

@@ -217,6 +217,17 @@ var LibJitsiMeet = {
217 217
                         }
218 218
                     }
219 219
 
220
+                // set real device ids
221
+                var currentlyAvailableMediaDevices
222
+                    = RTC.getCurrentlyAvailableMediaDevices();
223
+                if (currentlyAvailableMediaDevices) {
224
+                    for(var i = 0; i < tracks.length; i++) {
225
+                        var track = tracks[i];
226
+                        track._setRealDeviceIdFromDeviceList(
227
+                            currentlyAvailableMediaDevices);
228
+                    }
229
+                }
230
+
220 231
                 return tracks;
221 232
             }).catch(function (error) {
222 233
                 promiseFulfilled = true;

Ładowanie…
Anuluj
Zapisz