From 9327c98e48863dabec92b15f6a1d184e7bcfddb0 Mon Sep 17 00:00:00 2001 From: Evgeny Sorokin Date: Wed, 3 Apr 2024 05:22:52 +0300 Subject: web_kbn upd --- web/kbn_assets/app.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'web') diff --git a/web/kbn_assets/app.js b/web/kbn_assets/app.js index 9136af9..4405e8d 100644 --- a/web/kbn_assets/app.js +++ b/web/kbn_assets/app.js @@ -140,12 +140,11 @@ function indexInit() { var Cameras = { hlsOptions: null, - host: null, - proto: null, + pfx: null, hlsDebugVideoEvents: false, getUrl: function(name) { - return this.proto + '://' + this.host + '/ipcam/' + name + '/live.m3u8'; + return this.pfx + '/live.m3u8'; }, setupHls: function(video, name, useHls) { @@ -201,8 +200,7 @@ var Cameras = { }, init: function(opts) { - this.proto = opts.proto; - this.host = opts.host; + this.pfx = opts.pfx; this.hlsOptions = opts.hlsConfig; var useHls; -- cgit v1.2.3