Skip to content

Commit

Permalink
fix: add as debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Mar 12, 2024
1 parent ba6fa9b commit fb08771
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,14 @@ export class HMSLocalAudioTrack extends HMSAudioTrack {
const hasPropertyChanged = generateHasPropertyChanged(settings, this.settings);
if (hasPropertyChanged('deviceId')) {
this.manuallySelectedDeviceId = !internal ? settings.deviceId : this.manuallySelectedDeviceId;
console.log('device change', this.manuallySelectedDeviceId, settings.deviceId);
HMSLogger.d(
this.TAG,
'device change',
'manual selection:',
this.manuallySelectedDeviceId,
'new device:',
settings.deviceId,
);
await this.replaceTrackWith(settings);
const groupId = this.nativeTrack.getSettings().groupId;
if (!internal && settings.deviceId) {
Expand Down

0 comments on commit fb08771

Please sign in to comment.