This commit is contained in:
yumoqing 2025-01-12 10:56:06 +08:00
parent 48f4a5654c
commit 09b78e025f

View File

@ -26,6 +26,7 @@ bricks.VideoBody = class extends bricks.Layout {
bricks.Video = class extends bricks.Layout {
/*
{
title:
vtype:
url:
fullscreen:
@ -150,4 +151,19 @@ bricks.Video = class extends bricks.Layout {
}
}
bricks.Iptv = class extends bricks.VBox {
/*
{
iptv_data
}
*/
constructor(opts){
super(opts);
this.user_data = iptv_data;
this.video = new bricks.Video({url:opts.iptv_data.url});
this.title_w = new bricks.Text({text:opts.iptv_data.title, wrap:false});
this.add_widget(this.title_w);
this.add_widget(this.video);
}
}
bricks.Factory.register('Video', bricks.Video);