This commit is contained in:
yumoqing 2025-09-29 11:00:01 +08:00
parent a6f7c587ec
commit 758d34592a

View File

@ -104,11 +104,11 @@ bricks.Camera = class extends bricks.Popup {
} }
switch_recording(){ switch_recording(){
if (this.record_status == 'recording'){ if (this.record_status == 'recording'){
this.record_status == 'standby'; this.record_status = 'standby';
this.shot_btn.set_url(bricks_resource('imgs/start_recording.svg')); this.shot_btn.set_url(bricks_resource('imgs/start_recording.svg'));
this.viderecorder_stop(); this.viderecorder_stop();
} else { } else {
this.record_status == 'recording'; this.record_status = 'recording';
this.shot_btn.set_url(bricks_resource('imgs/stop_recording.svg')); this.shot_btn.set_url(bricks_resource('imgs/stop_recording.svg'));
this.videorecorder_start(); this.videorecorder_start();
} }