Skip to content

Commit

Permalink
feat: accept sessionID while initing plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Mar 18, 2024
1 parent c9957ee commit b257e6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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> | void;
init(sessionID?: string): Promise<void> | void;

/**
* The name is meant to uniquely specify a plugin instance. This will be used to track number of plugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface HMSMediaStreamPlugin {
*/
getName(): string;

apply(stream: MediaStream): MediaStream;
apply(stream: MediaStream, sessionID: string): MediaStream;

stop(): void;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>;
init(sessionID?: string): Promise<void>;

/**
* @see HMSVideoPluginType
Expand Down

0 comments on commit b257e6f

Please sign in to comment.