bugfix
This commit is contained in:
parent
f2071dec5a
commit
02da367e5b
@ -38,7 +38,6 @@ bricks.MediaRecorder = class extends bricks.Popup {
|
|||||||
console.log('toggle_record called');
|
console.log('toggle_record called');
|
||||||
}
|
}
|
||||||
cancel_record(){
|
cancel_record(){
|
||||||
this.toggle_record.disabled = true;
|
|
||||||
this.close_recorder();
|
this.close_recorder();
|
||||||
}
|
}
|
||||||
async open_recorder(){
|
async open_recorder(){
|
||||||
@ -109,6 +108,7 @@ bricks.WidgetRecorder = class extends bricks.MediaRecorder {
|
|||||||
throw 'Error, not a media element';
|
throw 'Error, not a media element';
|
||||||
}
|
}
|
||||||
this.stream = source.captureStream();
|
this.stream = source.captureStream();
|
||||||
|
this.toggle_record.disabled(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bricks.SysAudioRecorder = class extends bricks.MediaRecorder {
|
bricks.SysAudioRecorder = class extends bricks.MediaRecorder {
|
||||||
@ -137,6 +137,7 @@ bricks.SysVideoRecorder = class extends bricks.MediaRecorder {
|
|||||||
this.imgw = new bricks.Image({width: '100%'});
|
this.imgw = new bricks.Image({width: '100%'});
|
||||||
this.preview.add_widget(this.imgw);
|
this.preview.add_widget(this.imgw);
|
||||||
this.task = schedule_once(this.show_picture.bind(this), this.task_period);
|
this.task = schedule_once(this.show_picture.bind(this), this.task_period);
|
||||||
|
this.toggle_record.disabled(false);
|
||||||
}
|
}
|
||||||
async show_picture(){
|
async show_picture(){
|
||||||
if (this.task_period == 0){
|
if (this.task_period == 0){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user