summaryrefslogtreecommitdiff
path: root/web/kbn_templates/cams.j2
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2024-02-18 02:19:27 +0300
committerEvgeny Zinoviev <me@ch1p.io>2024-02-18 02:19:27 +0300
commitf14bdc6752fc4a0ab36567d0f1e51e472a2200b6 (patch)
tree22c6b3af78fc079ab6424751289971aa65051f97 /web/kbn_templates/cams.j2
parent42155370475b1f6619498ec2c43c1c7f328ce1a1 (diff)
web_kbn: basic support of cams hls streaming
Diffstat (limited to 'web/kbn_templates/cams.j2')
-rw-r--r--web/kbn_templates/cams.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/web/kbn_templates/cams.j2 b/web/kbn_templates/cams.j2
new file mode 100644
index 0000000..79cb64b
--- /dev/null
+++ b/web/kbn_templates/cams.j2
@@ -0,0 +1,21 @@
+{% extends "base.j2" %}
+{% block content %}
+{{ breadcrumbs([{'text': 'Камеры'}]) }}
+
+{#<nav>#}
+{# <div class="nav nav-tabs" id="nav-tab">#}
+{# <a href="/cams/{{ camera_param ? camera_param~"/" : "" }}" class="text-decoration-none"><button class="nav-link{% if tab == 'low' %} active{% endif %}" type="button">Low-res</button></a>#}
+{# <a href="/cams/{{ camera_param ? camera_param~"/" : "" }}?high=1" class="text-decoration-none"><button class="nav-link{% if tab == 'high' %} active{% endif %}" type="button">High-res</button></a>#}
+{# </div>#}
+{#</nav>#}
+
+<div id="videos" class="camfeeds"></div>
+
+{% endblock %}
+
+{% block js %}
+if (isTouchDevice()) {
+ addClass(ge('videos'), 'is_mobile');
+}
+Cameras.init({{ js_config|tojson }});
+{% endblock %}