diff --git a/src/media/local-stream.ts b/src/media/local-stream.ts index fb62a77..8acf3e9 100644 --- a/src/media/local-stream.ts +++ b/src/media/local-stream.ts @@ -217,6 +217,7 @@ abstract class _LocalStream extends Stream { stop(): void { this.inputTrack.stop(); this.outputTrack.stop(); + this.disposeEffects(); // calling stop() will not automatically emit Ended, so we emit it here this[StreamEventNames.Ended].emit(); }