This commit is contained in:
yumoqing 2025-09-09 13:02:25 +08:00
parent 0b6be13ec0
commit 1bb58a4fec
3 changed files with 8 additions and 16 deletions

View File

@ -1098,7 +1098,7 @@ bricks.UiVideo =class extends bricks.UiStr {
url: bricks_resource('imgs/right_arrow.svg')});
this.add_widget(this.icon);
this.icon.bind('click', this.play_audio.bind(this));
this.player = new bricks.VideoPlayer({
this.player = new bricks.Video({
url:this.value
});
if (this.autoplay){

View File

@ -120,15 +120,6 @@ bricks.ModelOutput = class extends bricks.VBox {
this.received_reasoning_content = '';
this.run.stop_timepass();
this.content.remove_widget(this.run);
if(this.textvoice){
this.upstreaming = new bricks.UpStreaming({
url:this.tts_url
});
this.upstreaming.go();
}
}
if (this.upstreaming){
this.upstreaming.send(data.content);
}
this.run = null;
this.filler.clear_widgets();
@ -169,9 +160,7 @@ bricks.ModelOutput = class extends bricks.VBox {
}
}
finish(){
if (this.upstreaming){
this.upstreaming.finish();
}
console.log('finished')
}
}
@ -272,9 +261,12 @@ bricks.LlmModel = class extends bricks.JsWidget {
console.log(l, 'is not a json data');
return
}
if (this.opts.response_mode == 'async' && d.status != 'SUCCESSED'){
if (this.opts.response_mode == 'async'){
if(d.status != 'SUCCESSED'){
return;
}
}
console.log('l=', l, 'd=', d);
mout.update_data(d);
}
chunk_ended(){

View File

@ -105,7 +105,7 @@ bricks.QAFrame = class extends bricks.VBox {
console.log('show_courseware(), d=', d);
switch(d.type){
case 'video':
w = new bricks.VideoPlayer({
w = new bricks.Video({
width:'100%',
height:'100%',
url:d.url,