This commit is contained in:
yumoqing 2025-09-29 11:05:26 +08:00
parent 1bf59a66bf
commit cc0e24082f

View File

@ -130,11 +130,12 @@ bricks.Camera = class extends bricks.Popup {
resolve({ blob, url }); resolve({ blob, url });
this.recordedChunks = []; this.recordedChunks = [];
this.dispatch('recorded', url); this.dispatch('recorded', url);
console.log('record end')
} }
this.mediaRecorder.start(); this.mediaRecorder.start();
} }
videorecorder_stop(){ videorecorder_stop(){
this.mediaRecirder.stop(); this.mediaRecorder.stop();
} }
take_picture(event){ take_picture(event){
event.stopPropagation(); event.stopPropagation();