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): disable preview for ios

Hristo Terezov7e942173aa11
diff --git a/react/features/device-selection/functions.js b/react/features/device-selection/functions.js
index 0464949f7f..6f3fb07358 100644
--- a/react/features/device-selection/functions.js
+++ b/react/features/device-selection/functions.js
@@ -14,7 +14,7 @@ import {
setVideoInputDeviceAndUpdateSettings
} from '../base/devices';
import { isIosMobileBrowser } from '../base/environment/utils';
-import JitsiMeetJS, { browser } from '../base/lib-jitsi-meet';
+import JitsiMeetJS from '../base/lib-jitsi-meet';
import { toState } from '../base/redux';
import {
getUserSelectedCameraDeviceId,
@@ -32,7 +32,7 @@ import {
export function getDeviceSelectionDialogProps(stateful: Object | Function) {
// On mobile Safari because of https://bugs.webkit.org/show_bug.cgi?id=179363#c30, the old track is stopped
// by the browser when a new track is created for preview. That's why we are disabling all previews.
- const disablePreviews = isIosMobileBrowser() && browser.isVersionGreaterThan('15.3');
+ const disablePreviews = isIosMobileBrowser();
const state = toState(stateful);
const settings = state['features/base/settings'];