fix(device-selection): disable preview for ios
This commit is contained in:
parent
e1b87c48bc
commit
7e942173aa
|
@ -14,7 +14,7 @@ import {
|
||||||
setVideoInputDeviceAndUpdateSettings
|
setVideoInputDeviceAndUpdateSettings
|
||||||
} from '../base/devices';
|
} from '../base/devices';
|
||||||
import { isIosMobileBrowser } from '../base/environment/utils';
|
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 { toState } from '../base/redux';
|
||||||
import {
|
import {
|
||||||
getUserSelectedCameraDeviceId,
|
getUserSelectedCameraDeviceId,
|
||||||
|
@ -32,7 +32,7 @@ import {
|
||||||
export function getDeviceSelectionDialogProps(stateful: Object | Function) {
|
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
|
// 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.
|
// 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 state = toState(stateful);
|
||||||
const settings = state['features/base/settings'];
|
const settings = state['features/base/settings'];
|
||||||
|
|
Loading…
Reference in New Issue