From abd861229e01f3d543a4410e0594c1554642fa8c Mon Sep 17 00:00:00 2001 From: Becky Gilbert Date: Tue, 1 Oct 2024 11:59:34 -0700 Subject: [PATCH] reset recorder to fix stream inactive initialize error --- packages/record/src/video_config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/record/src/video_config.ts b/packages/record/src/video_config.ts index 4f71da71..a4ae419c 100644 --- a/packages/record/src/video_config.ts +++ b/packages/record/src/video_config.ts @@ -254,6 +254,7 @@ export default class VideoConfigPlugin implements JsPsychPlugin { private destroyRecorder = () => { if (this.recorder) { this.recorder.stopTracks(); + this.recorder.reset(); this.recorder = null; } this.enable_next(false);