From fa2c227b30b8846975cc8b60a79ed1ea38ae56e6 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Tue, 10 Dec 2024 16:22:22 +0530 Subject: [PATCH] fix: add a test --- .../hms-video-store/src/audio-sink-manager/AudioSinkManager.ts | 1 - packages/hms-video-store/src/sdk/index.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts b/packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts index 970d788e5d..e52c382003 100644 --- a/packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts +++ b/packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts @@ -148,7 +148,6 @@ export class AudioSinkManager { }; track.setAudioElement(audioEl); await track.setVolume(this.volume); - await this.deviceManager.autoSelectAudioOutput(); HMSLogger.d(this.TAG, 'Audio track added', `${track}`); this.init(); // call to create sink element if not already created this.audioSink?.append(audioEl); diff --git a/packages/hms-video-store/src/sdk/index.ts b/packages/hms-video-store/src/sdk/index.ts index 50bd36b0eb..62e25630d1 100644 --- a/packages/hms-video-store/src/sdk/index.ts +++ b/packages/hms-video-store/src/sdk/index.ts @@ -664,6 +664,7 @@ export class HMSSdk implements HMSInterface { HMSLogger.d(this.TAG, `✅ Joined room ${roomId}`); this.analyticsTimer.start(TimedEvent.PEER_LIST); await this.notifyJoin(); + await this.deviceManager.autoSelectAudioOutput(); this.sdkState.isJoinInProgress = false; await this.publish(config.settings, previewRole); } catch (error) {