From b46401b5a91f63917157dee40e986d3d3091025b Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 26 May 2022 01:25:21 +0300 Subject: localwebsite upd --- localwebsite/handlers/MiscHandler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'localwebsite/handlers') 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 ]); -- cgit v1.2.3