bugfix
This commit is contained in:
parent
c4407bf191
commit
a34a9bf77e
@ -16,22 +16,25 @@ bricks.UserInputView = class extends bricks.VBox {
|
|||||||
this.input_fields.forEach(f =>{
|
this.input_fields.forEach(f =>{
|
||||||
if (data[f.name]){
|
if (data[f.name]){
|
||||||
if (f.name.startsWith('video')){
|
if (f.name.startsWith('video')){
|
||||||
|
var url = URL.createObjectURL(data[f.name]);
|
||||||
this.v_w = new bricks.VideoPlayer({
|
this.v_w = new bricks.VideoPlayer({
|
||||||
url:data[f.name],
|
url:url,
|
||||||
autoplay:true,
|
autoplay:true,
|
||||||
width: '100%'
|
width: '100%'
|
||||||
});
|
});
|
||||||
} else if (f.name.startsWith('audio')){
|
} else if (f.name.startsWith('audio')){
|
||||||
|
var url = URL.createObjectURL(data[f.name]);
|
||||||
console.log('audio:', f.name, data[f.name]);
|
console.log('audio:', f.name, data[f.name]);
|
||||||
this.a_w = new bricks.AudioPlayer({
|
this.a_w = new bricks.AudioPlayer({
|
||||||
url:data[f.name],
|
url:url,
|
||||||
autoplay:true,
|
autoplay:true,
|
||||||
width: '100%'
|
width: '100%'
|
||||||
});
|
});
|
||||||
} else if (f.name.startsWith('image')){
|
} else if (f.name.startsWith('image')){
|
||||||
|
var url = URL.createObjectURL(data[f.name]);
|
||||||
mdtext += `
|
mdtext += `
|
||||||
* ${f.label || f.name}
|
* ${f.label || f.name}
|
||||||

|

|
||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
mdtext += `
|
mdtext += `
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user