diff options
Diffstat (limited to 'web/kbn_assets/app.js')
-rw-r--r-- | web/kbn_assets/app.js | 8 |
1 files changed, 3 insertions, 5 deletions
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; |