Skip to content

Commit 094709f

Browse files
committed
Merge branch 'main' into release/2.5.0-hotfix.1
2 parents ecb1677 + f82e3ee commit 094709f

File tree

8 files changed

+297
-122
lines changed

8 files changed

+297
-122
lines changed

example/web/e2ee.worker.dart.js

Lines changed: 62 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/web/e2ee.worker.dart.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/core/room.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,17 +1101,17 @@ extension RoomHardwareManagementMethods on Room {
11011101
final currentDeviceId =
11021102
engine.roomOptions.defaultCameraCaptureOptions.deviceId;
11031103

1104-
// Always update roomOptions so future tracks use the correct device
1105-
engine.roomOptions = engine.roomOptions.copyWith(
1106-
defaultCameraCaptureOptions: roomOptions.defaultCameraCaptureOptions
1107-
.copyWith(deviceId: device.deviceId),
1108-
);
1109-
11101104
try {
11111105
if (track != null && selectedVideoInputDeviceId != device.deviceId) {
11121106
await track.switchCamera(device.deviceId);
11131107
Hardware.instance.selectedVideoInput = device;
11141108
}
1109+
1110+
// Always update roomOptions so future tracks use the correct device
1111+
engine.roomOptions = engine.roomOptions.copyWith(
1112+
defaultCameraCaptureOptions: roomOptions.defaultCameraCaptureOptions
1113+
.copyWith(deviceId: device.deviceId),
1114+
);
11151115
} catch (e) {
11161116
// if the switching actually fails, reset it to the previous deviceId
11171117
engine.roomOptions = engine.roomOptions.copyWith(

linux/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ project(${PROJECT_NAME} LANGUAGES CXX C)
1111
# not be changed.
1212
set(PLUGIN_NAME "livekit_client_plugin")
1313

14+
set(CMAKE_CXX_STANDARD 17)
15+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1416

1517
add_definitions(-D_USE_MATH_DEFINES)
1618
add_definitions(-DRTC_DESKTOP_DEVICE)

0 commit comments

Comments
 (0)