diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-05-26 01:25:21 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-05-26 01:25:21 +0300 |
commit | b46401b5a91f63917157dee40e986d3d3091025b (patch) | |
tree | 634766ef848b76d29c01be79cd6ad889dbc03fcd /localwebsite/templates-web | |
parent | e20f0ef7c91e7862150f362fb2718cf5f5f6c909 (diff) |
localwebsite upd
Diffstat (limited to 'localwebsite/templates-web')
-rw-r--r-- | localwebsite/templates-web/cams.twig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/localwebsite/templates-web/cams.twig b/localwebsite/templates-web/cams.twig index cf6009c..71642ee 100644 --- a/localwebsite/templates-web/cams.twig +++ b/localwebsite/templates-web/cams.twig @@ -14,7 +14,10 @@ function hasFallbackSupport() { } function setupHls(video, name, useHls) { - var src = 'http://{{ hls_host }}/ipcam/'+name+'/live.m3u8'; + var src = '{{ hls_proto }}://{{ hls_host }}/ipcam/'+name+'/live.m3u8'; + {% if hls_access_key %} + src += '?access_key={{ hls_access_key }}'; + {% endif %} // hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled. |