Skip to content

Commit

Permalink
fix: add test log
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Mar 4, 2024
1 parent ae8fc0b commit 6bdce61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export class AudioSinkManager {
const localAudioTrack = this.store.getLocalPeer()?.audioTrack;
if (localAudioTrack && earpiece) {
const externalDeviceID = bluetoothDevice?.deviceId || wired?.deviceId || speakerPhone?.deviceId;
console.log('externalDeviceID', externalDeviceID);
// already selected appropriate device
if (localAudioTrack.settings.deviceId === externalDeviceID) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ 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);
await this.replaceTrackWith(settings);
const groupId = this.nativeTrack.getSettings().groupId;
if (!internal && settings.deviceId) {
Expand Down

0 comments on commit 6bdce61

Please sign in to comment.