This commit is contained in:
yumoqing 2025-09-29 11:07:48 +08:00
parent cc0e24082f
commit 2fef7cd9d3

View File

@ -127,7 +127,6 @@ bricks.Camera = class extends bricks.Popup {
this.mediaRecorder.onstop = () => { this.mediaRecorder.onstop = () => {
const blob = new Blob(this.recordedChunks, { type: 'video/webm' }); const blob = new Blob(this.recordedChunks, { type: 'video/webm' });
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
resolve({ blob, url });
this.recordedChunks = []; this.recordedChunks = [];
this.dispatch('recorded', url); this.dispatch('recorded', url);
console.log('record end') console.log('record end')