diff --git a/.changes/fix-setvideoinputdevice b/.changes/fix-setvideoinputdevice new file mode 100644 index 000000000..443d4249a --- /dev/null +++ b/.changes/fix-setvideoinputdevice @@ -0,0 +1 @@ +patch type="fixed" "Fix setVideoInputDevice not switching camera (#863)" diff --git a/lib/src/core/room.dart b/lib/src/core/room.dart index 2508063f8..944a3631c 100644 --- a/lib/src/core/room.dart +++ b/lib/src/core/room.dart @@ -1130,7 +1130,7 @@ extension RoomHardwareManagementMethods on Room { ); try { - if (track != null && selectedVideoInputDeviceId != device.deviceId) { + if (track != null && currentDeviceId != device.deviceId) { await track.switchCamera(device.deviceId); Hardware.instance.selectedVideoInput = device; }