bugfix
This commit is contained in:
parent
b2ed0916da
commit
b08d2cc50c
@ -584,6 +584,7 @@ bricks.UiVideo =class extends bricks.UiFile {
|
|||||||
accept_video(camera, event){
|
accept_video(camera, event){
|
||||||
camera.dismiss();
|
camera.dismiss();
|
||||||
this.value = event.params
|
this.value = event.params
|
||||||
|
console.log('record finished, value=', this.value);
|
||||||
this.dispatch('changed', this.value);
|
this.dispatch('changed', this.value);
|
||||||
}
|
}
|
||||||
show_video(event){
|
show_video(event){
|
||||||
@ -607,7 +608,6 @@ bricks.UiVideo =class extends bricks.UiFile {
|
|||||||
audoplay: true,
|
audoplay: true,
|
||||||
width:'100%'
|
width:'100%'
|
||||||
});
|
});
|
||||||
this.value = file;
|
|
||||||
this.preview.add_widget(vw);
|
this.preview.add_widget(vw);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -618,7 +618,7 @@ bricks.UiVideo =class extends bricks.UiFile {
|
|||||||
autoplay: true,
|
autoplay: true,
|
||||||
width:'100%'
|
width:'100%'
|
||||||
});
|
});
|
||||||
this.value = e.target.result;
|
console.log('show video', e.target.result);
|
||||||
this.preview.add_widget(imgw);
|
this.preview.add_widget(imgw);
|
||||||
};
|
};
|
||||||
reader.readAsDataURL(file);
|
reader.readAsDataURL(file);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user