summaryrefslogtreecommitdiff
path: root/localwebsite/handlers
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-05-26 01:25:21 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-05-26 01:25:21 +0300
commitb46401b5a91f63917157dee40e986d3d3091025b (patch)
tree634766ef848b76d29c01be79cd6ad889dbc03fcd /localwebsite/handlers
parente20f0ef7c91e7862150f362fb2718cf5f5f6c909 (diff)
localwebsite upd
Diffstat (limited to 'localwebsite/handlers')
-rw-r--r--localwebsite/handlers/MiscHandler.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php
index 1230b35..ef4d8ef 100644
--- a/localwebsite/handlers/MiscHandler.php
+++ b/localwebsite/handlers/MiscHandler.php
@@ -68,10 +68,16 @@ class MiscHandler extends RequestHandler
$hls_opts['debug'] = true;
$this->tpl->add_external_static('js', 'https://cdn.jsdelivr.net/npm/hls.js@latest');
+
+ $hls_host = is_callable($config['cam_hls_host']) ? $config['cam_hls_host']() : $config['cam_hls_host'];
+ $hls_proto = is_callable($config['cam_hls_proto']) ? $config['cam_hls_proto']() : $config['cam_hls_proto'];
$this->tpl->set([
- 'hls_host' => $config['cam_hls_host'],
+ 'hls_host' => $hls_host,
+ 'hls_proto' => $hls_proto,
'hls_opts' => $hls_opts,
+ 'hls_access_key' => $config['cam_hls_access_key'],
+
'cams' => $config['cam_list'],
'video_events' => $video_events
]);