diff --git a/packages/client/src/devices/CameraManager.ts b/packages/client/src/devices/CameraManager.ts index aa8362d0e4..8809a095a1 100644 --- a/packages/client/src/devices/CameraManager.ts +++ b/packages/client/src/devices/CameraManager.ts @@ -43,12 +43,13 @@ export class CameraManager extends DeviceManager { await videoTrack?.applyConstraints({ facingMode: direction === 'front' ? 'user' : 'environment', }); - this.state.setDirection(direction); - return; } // providing both device id and direction doesn't work, so we deselect the device this.state.setDirection(direction); this.state.setDevice(undefined); + if (isReactNative()) { + return; + } this.getTracks().forEach((track) => track.stop()); try { await this.unmuteStream();