diff --git a/bricks/video.js b/bricks/video.js index f9ba8c9..c1b8ee3 100644 --- a/bricks/video.js +++ b/bricks/video.js @@ -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);