diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-05-23 17:48:34 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-05-23 17:48:34 +0300 |
commit | 503d6350921f161b258f41cea4d0ebd0b5e795fc (patch) | |
tree | 9f53619426c3f0d0ce692d12f8780bee21e6eeae /localwebsite/templates-web/cams.twig | |
parent | c538f17b5ccf93acf9a72726f301bb815bfb514b (diff) |
localwebsite: cams: support hls_debug param
Diffstat (limited to 'localwebsite/templates-web/cams.twig')
-rw-r--r-- | localwebsite/templates-web/cams.twig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/localwebsite/templates-web/cams.twig b/localwebsite/templates-web/cams.twig index 2963fdb..5d25a9d 100644 --- a/localwebsite/templates-web/cams.twig +++ b/localwebsite/templates-web/cams.twig @@ -6,7 +6,6 @@ </nav> <div id="videos" class="camfeeds"></div> -<video height="300" id="video"></video> <script> function hasFallbackSupport() { @@ -23,10 +22,7 @@ function setupHls(video, name, useHls) { // This is using the built-in support of the plain video element, without using hls.js. if (useHls) { - var hls = new Hls({ - // debug: true, - startPosition: -1, - }); + var hls = new Hls({{ hls_opts|json_encode|raw }}); hls.loadSource(src); hls.attachMedia(video); hls.on(Hls.Events.MEDIA_ATTACHED, function () { |