diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-08-21 23:55:58 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-08-21 23:55:58 +0300 |
commit | 4f6adc157492f631a587d93773e1c9f40a852937 (patch) | |
tree | f99ca826ac28ffe1ef764414a6b89a36b05ad8bd /localwebsite/handlers/MiscHandler.php | |
parent | e636419bd2598d9a3cfccfba21b07db68c0f53fd (diff) |
lws: cams: switch between highres/lowres
Diffstat (limited to 'localwebsite/handlers/MiscHandler.php')
-rw-r--r-- | localwebsite/handlers/MiscHandler.php | 7 |
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('Камеры'); |