This commit is contained in:
yumoqing 2025-09-29 18:18:46 +08:00
parent 17839caf0e
commit 9c8b5935fe

View File

@ -54,7 +54,7 @@ bricks.MediaRecorder = class extends bricks.Popup {
} }
async start_recorder(){ async start_recorder(){
this.normal_stop = false; this.normal_stop = false;
this.mediaRecorder = new MediaRecorder(stream, this.mediaRecorder = new MediaRecorder(this.stream,
{mimeType: this.mimetype}); {mimeType: this.mimetype});
this.recordedChunks = []; this.recordedChunks = [];
this.mediaRecorder.ondataavailable = (event) => { this.mediaRecorder.ondataavailable = (event) => {