This commit is contained in:
yumoqing 2025-09-29 11:41:16 +08:00
parent b08d2cc50c
commit 89a9baaa40

View File

@ -127,6 +127,7 @@ 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);
console.log('recorded url=', url);
this.recordedChunks = []; this.recordedChunks = [];
this.dispatch('recorded', url); this.dispatch('recorded', url);
console.log('record end') console.log('record end')