This commit is contained in:
yumoqing 2025-09-29 21:15:23 +08:00
parent 5872713075
commit 419cd5b329

View File

@ -35,7 +35,7 @@ bricks.MediaRecorder = class extends bricks.Popup {
schedule_once(this.open_recorder.bind(this), 0.1);
}
tick_task(){
this.task = schedule_once(this.tick_taask.bind(this), this.task_period);
this.task = schedule_once(this.tick_task.bind(this), this.task_period);
this.timepass.set_text(bricks.timeDiff(this.start_time));
}
async switch_record(){
@ -89,7 +89,7 @@ bricks.MediaRecorder = class extends bricks.Popup {
};
this.start_time = Date.now();
this.task = schedule_once(this.tick_taask.bind(this), this.task_period);
this.task = schedule_once(this.tick_task.bind(this), this.task_period);
this.mediaRecorder.start();
this.dispatch('record_started')
console.log("Recording started...");