Compare commits

..

No commits in common. "097459884cacf71906fcbd9335a863daf64cd27a" and "40b5ae6cb273222cb2d39497f3f83c319ef2a241" have entirely different histories.

View File

@ -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}
![${f.label || f.name}](${url})
![${f.label || f.name}](${data[f.name]})
`;
} else {
mdtext += `