Compare commits
No commits in common. "097459884cacf71906fcbd9335a863daf64cd27a" and "40b5ae6cb273222cb2d39497f3f83c319ef2a241" have entirely different histories.
097459884c
...
40b5ae6cb2
@ -16,25 +16,22 @@ bricks.UserInputView = class extends bricks.VBox {
|
||||
this.input_fields.forEach(f =>{
|
||||
if (data[f.name]){
|
||||
if (f.name.startsWith('video')){
|
||||
var url = URL.createObjectURL(data[f.name]);
|
||||
this.v_w = new bricks.VideoPlayer({
|
||||
url:url,
|
||||
url:data[f.name],
|
||||
autoplay:true,
|
||||
width: '100%'
|
||||
});
|
||||
} else if (f.name.startsWith('audio')){
|
||||
var url = URL.createObjectURL(data[f.name]);
|
||||
console.log('audio:', f.name, data[f.name]);
|
||||
this.a_w = new bricks.AudioPlayer({
|
||||
url:url,
|
||||
url:data[f.name],
|
||||
autoplay:true,
|
||||
width: '100%'
|
||||
});
|
||||
} else if (f.name.startsWith('image')){
|
||||
var url = URL.createObjectURL(data[f.name]);
|
||||
mdtext += `
|
||||
* ${f.label || f.name}
|
||||

|
||||

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