Skip to content

Commit

Permalink
feat: add getAllEffects method
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Tham committed Oct 2, 2023
1 parent c7859ed commit 41d6c9a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/media/local-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,15 @@ abstract class _LocalStream extends Stream {
return this.effects.find((e) => e.name === name)?.effect;
}

/**
* Get all the effects from the effects list.
*
* @returns A list of effect items, each containing the name and the effect itself.
*/
getAllEffects(): EffectItem[] {
return this.effects;
}

/**
* Cleanup the local effects.
*/
Expand Down

0 comments on commit 41d6c9a

Please sign in to comment.