From a34a9bf77e46a55d2f2d87918e290a7ef0e6594f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 10 Nov 2025 15:13:24 +0800 Subject: [PATCH] bugfix --- bricks/llmout.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bricks/llmout.js b/bricks/llmout.js index 6f78540..829f1a0 100644 --- a/bricks/llmout.js +++ b/bricks/llmout.js @@ -16,22 +16,25 @@ 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:data[f.name], + url:url, 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:data[f.name], + url:url, 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}](${data[f.name]}) +![${f.label || f.name}](${url}) `; } else { mdtext += `