From 575c5dc3b2fddc6f25ed4ee365a3d0bfec4eb5ee Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Sep 2025 10:38:05 +0800 Subject: [PATCH] bugfix --- bricks/camera.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bricks/camera.js b/bricks/camera.js index 0ba1f30..8b97b08 100644 --- a/bricks/camera.js +++ b/bricks/camera.js @@ -128,7 +128,9 @@ bricks.Camera = class extends bricks.Popup { } videorecorder_stop(){ return new Promise((resolve) => { + console.log('go here!') this.mediaRecorder.onstop = () => { + console.log('stoped'); const blob = new Blob(this.recordedChunks, { type: 'video/webm' }); const url = URL.createObjectURL(blob); resolve({ blob, url });