Преглед на файлове

fix(device-selection) Do not create preview when mic selection is disabled.

This fixes an issue on mobile Safari when audio is lost after the user opens the device selection menu.
master
Jaya Allamsetty преди 3 години
родител
ревизия
58d98ad7d3
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6
    0
      react/features/device-selection/components/DeviceSelection.js

+ 6
- 0
react/features/device-selection/components/DeviceSelection.js Целия файл

@@ -258,6 +258,12 @@ class DeviceSelection extends AbstractDialogTab<Props, State> {
258 258
      * @returns {void}
259 259
      */
260 260
     _createAudioInputTrack(deviceId) {
261
+        const { hideAudioInputPreview } = this.props;
262
+
263
+        if (hideAudioInputPreview) {
264
+            return;
265
+        }
266
+
261 267
         return this._disposeAudioInputPreview()
262 268
             .then(() => createLocalTrack('audio', deviceId, 5000))
263 269
             .then(jitsiLocalTrack => {

Loading…
Отказ
Запис