summaryrefslogtreecommitdiff
path: root/localwebsite/handlers
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-08-21 23:55:58 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-08-21 23:55:58 +0300
commit4f6adc157492f631a587d93773e1c9f40a852937 (patch)
treef99ca826ac28ffe1ef764414a6b89a36b05ad8bd /localwebsite/handlers
parente636419bd2598d9a3cfccfba21b07db68c0f53fd (diff)
lws: cams: switch between highres/lowres
Diffstat (limited to 'localwebsite/handlers')
-rw-r--r--localwebsite/handlers/MiscHandler.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php
index 657395e..983570f 100644
--- a/localwebsite/handlers/MiscHandler.php
+++ b/localwebsite/handlers/MiscHandler.php
@@ -52,7 +52,9 @@ class MiscHandler extends RequestHandler
public function GET_cams() {
global $config;
- list($hls_debug, $video_events) = $this->input('b:hls_debug, b:video_events');
+ list($hls_debug, $video_events, $high) = $this->input('b:hls_debug, b:video_events, b:high');
+
+ $tab = $high ? 'high' : 'low';
$hls_opts = [
'startPosition' => -1,
@@ -82,7 +84,8 @@ class MiscHandler extends RequestHandler
'hls_opts' => $hls_opts,
'hls_access_key' => $config['cam_hls_access_key'],
- 'cams' => $config['cam_list'],
+ 'cams' => $config['cam_list'][$tab],
+ 'tab' => $tab,
'video_events' => $video_events
]);
$this->tpl->set_title('Камеры');