We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f8ce2 commit 29963ceCopy full SHA for 29963ce
packages/client/src/devices/CameraManager.ts
@@ -43,12 +43,13 @@ export class CameraManager extends DeviceManager<CameraManagerState> {
43
await videoTrack?.applyConstraints({
44
facingMode: direction === 'front' ? 'user' : 'environment',
45
});
46
- this.state.setDirection(direction);
47
- return;
48
}
49
// providing both device id and direction doesn't work, so we deselect the device
50
this.state.setDirection(direction);
51
this.state.setDevice(undefined);
+ if (isReactNative()) {
+ return;
52
+ }
53
this.getTracks().forEach((track) => track.stop());
54
try {
55
await this.unmuteStream();
0 commit comments