Skip to content

Commit

Permalink
remove more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Jan 7, 2025
1 parent 5512f57 commit 22ddd9a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/room/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1671,12 +1671,6 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
previousDevice.label !== availableDevice.label
) {
// label has changed on device the same deviceId, indicating that the default device has changed on the OS level
console.log(
'default device switch detected',
availableDevice.kind,
availableDevice.label,
previousDevice.label,
);
if (this.getActiveDevice(availableDevice.kind) === 'default') {
// emit an active device change event only if the selected output device is actually on `default`
this.emit(
Expand Down Expand Up @@ -2092,7 +2086,6 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
this.logContext,
);
this.localParticipant.activeDeviceMap.set(deviceKind, deviceId);
console.log('track restarted active device handling');
this.emit(RoomEvent.ActiveDeviceChanged, deviceKind, deviceId);
}
};
Expand Down

0 comments on commit 22ddd9a

Please sign in to comment.