Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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.

Jaya Allamsetty58d98ad7d374
diff --git a/react/features/device-selection/components/DeviceSelection.js b/react/features/device-selection/components/DeviceSelection.js
index 74077865f6..385a083344 100644
--- a/react/features/device-selection/components/DeviceSelection.js
+++ b/react/features/device-selection/components/DeviceSelection.js
@@ -258,6 +258,12 @@ class DeviceSelection extends AbstractDialogTab<Props, State> {
* @returns {void}
*/
_createAudioInputTrack(deviceId) {
+ const { hideAudioInputPreview } = this.props;
+
+ if (hideAudioInputPreview) {
+ return;
+ }
+
return this._disposeAudioInputPreview()
.then(() => createLocalTrack('audio', deviceId, 5000))
.then(jitsiLocalTrack => {