From b61af304a9f12d26d81b308bd250c5151286f812 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Sep 2025 17:30:22 +0800 Subject: [PATCH] bugfix --- bricks/recorder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/recorder.js b/bricks/recorder.js index c47c496..6a52041 100644 --- a/bricks/recorder.js +++ b/bricks/recorder.js @@ -129,7 +129,7 @@ bricks.SysVideoRecorder = class extends bricks.MediaRecorder { this.mimetype = 'video/mp4'; this.stream = await navigator.mediaDevices.getUserMedia(options); this.imgw = new bricks.Image({width: '100%'}); - this.preview.add_widget(imgw); + this.preview.add_widget(this.imgw); this.task = schedule_once(this.show_picture.bind(this), this.task_period); } show_picture(){