summaryrefslogtreecommitdiff
path: root/localwebsite/handlers/MiscHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'localwebsite/handlers/MiscHandler.php')
-rw-r--r--localwebsite/handlers/MiscHandler.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php
index 314920a..61a82e0 100644
--- a/localwebsite/handlers/MiscHandler.php
+++ b/localwebsite/handlers/MiscHandler.php
@@ -52,10 +52,19 @@ class MiscHandler extends RequestHandler
public function GET_cams() {
global $config;
+ list($hls_debug) = $this->input('b:hls_debug');
+
+ $hls_opts = [
+ 'startPosition' => -1
+ ];
+ if ($hls_debug)
+ $hls_opts['debug'] = true;
+
$this->tpl->add_external_static('js', 'https://cdn.jsdelivr.net/npm/hls.js@latest');
$this->tpl->set([
'hls_host' => $config['cam_hls_host'],
+ 'hls_opts' => $hls_opts,
'cams' => $config['cam_list']
]);
$this->tpl->set_title('Камеры');