From b257e6fb099c3f6bdbea33529f1cf29355ed23ef Mon Sep 17 00:00:00 2001 From: KaustubhKumar05 Date: Mon, 18 Mar 2024 10:56:49 +0530 Subject: [PATCH] feat: accept sessionID while initing plugins --- packages/hms-video-store/src/plugins/audio/HMSAudioPlugin.ts | 2 +- .../hms-video-store/src/plugins/video/HMSMediaStreamPlugin.ts | 2 +- packages/hms-video-store/src/plugins/video/HMSVideoPlugin.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/hms-video-store/src/plugins/audio/HMSAudioPlugin.ts b/packages/hms-video-store/src/plugins/audio/HMSAudioPlugin.ts index dc95c38d2c..66008701d1 100644 --- a/packages/hms-video-store/src/plugins/audio/HMSAudioPlugin.ts +++ b/packages/hms-video-store/src/plugins/audio/HMSAudioPlugin.ts @@ -29,7 +29,7 @@ export interface HMSAudioPlugin { * variables, loading ML models etc. This can be used by a plugin to ensure it's prepared at the time * processAudio is called. */ - init(): Promise | void; + init(sessionID?: string): Promise | void; /** * The name is meant to uniquely specify a plugin instance. This will be used to track number of plugins diff --git a/packages/hms-video-store/src/plugins/video/HMSMediaStreamPlugin.ts b/packages/hms-video-store/src/plugins/video/HMSMediaStreamPlugin.ts index aed35847ae..b79f5f0154 100644 --- a/packages/hms-video-store/src/plugins/video/HMSMediaStreamPlugin.ts +++ b/packages/hms-video-store/src/plugins/video/HMSMediaStreamPlugin.ts @@ -5,7 +5,7 @@ export interface HMSMediaStreamPlugin { */ getName(): string; - apply(stream: MediaStream): MediaStream; + apply(stream: MediaStream, sessionID: string): MediaStream; stop(): void; } diff --git a/packages/hms-video-store/src/plugins/video/HMSVideoPlugin.ts b/packages/hms-video-store/src/plugins/video/HMSVideoPlugin.ts index 2df07b7a52..b431cf2b39 100644 --- a/packages/hms-video-store/src/plugins/video/HMSVideoPlugin.ts +++ b/packages/hms-video-store/src/plugins/video/HMSVideoPlugin.ts @@ -29,7 +29,7 @@ export interface HMSVideoPlugin { * variables, loading ML models etc. This can be used by a plugin to ensure it's prepared at the time * processVideoFrame is called. */ - init(): Promise; + init(sessionID?: string): Promise; /** * @see HMSVideoPluginType