From 81571c4e6847abf79d2c7f1708342c6dcc692c2d Mon Sep 17 00:00:00 2001 From: hdz-666 <93115614+hdz-666@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:32:50 +0530 Subject: [PATCH] fix: await plugins init --- .../hms-video-store/src/plugins/audio/HMSAudioPluginsManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hms-video-store/src/plugins/audio/HMSAudioPluginsManager.ts b/packages/hms-video-store/src/plugins/audio/HMSAudioPluginsManager.ts index fa84d76ed4..48a7172ae4 100644 --- a/packages/hms-video-store/src/plugins/audio/HMSAudioPluginsManager.ts +++ b/packages/hms-video-store/src/plugins/audio/HMSAudioPluginsManager.ts @@ -136,7 +136,7 @@ export class HMSAudioPluginsManager { this.prevAudioNode.disconnect(); } this.analytics.added(name, this.audioContext!.sampleRate); - await this.analytics.initWithTime(name, async () => plugin.init()); + await this.analytics.initWithTime(name, async () => await plugin.init()); this.pluginsMap.set(name, plugin); await this.processPlugin(plugin); await this.connectToDestination();