Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6bd75d7

Browse files
authored
Address chrome ideal device handling change (#1478)
1 parent ed51edc commit 6bd75d7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/selfish-cats-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"livekit-client": minor
3+
---
4+
5+
Address chrome ideal device handling change by defaulting to exact device matching

src/room/Room.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
12801280
* `audiooutput` to set speaker for all incoming audio tracks
12811281
* @param deviceId
12821282
*/
1283-
async switchActiveDevice(kind: MediaDeviceKind, deviceId: string, exact: boolean = false) {
1283+
async switchActiveDevice(kind: MediaDeviceKind, deviceId: string, exact: boolean = true) {
12841284
let success = true;
12851285
let needsUpdateWithoutTracks = false;
12861286
const deviceConstraint = exact ? { exact: deviceId } : deviceId;

0 commit comments

Comments
 (0)