Skip to content

Commit

Permalink
reset recorder to fix stream inactive initialize error
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed Oct 1, 2024
1 parent 780c003 commit abd8612
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/record/src/video_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export default class VideoConfigPlugin implements JsPsychPlugin<Info> {
private destroyRecorder = () => {
if (this.recorder) {
this.recorder.stopTracks();
this.recorder.reset();
this.recorder = null;
}
this.enable_next(false);
Expand Down

0 comments on commit abd8612

Please sign in to comment.