summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-03-26 19:54:06 +0200
committerJonas Smedegaard <dr@jones.dk>2017-03-26 19:54:06 +0200
commit46ac337b6e118b91a25170a0f0d7cef3a823611b (patch)
treedfcd0ebc2a10ca50a0457bd62f2f713ce606d4bc /templates
parent45f6d5a2a7591e601f76566ed1e9863f263f3fd0 (diff)
Use stem, width and height also for live video.
Diffstat (limited to 'templates')
-rw-r--r--templates/video.mdwn7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/video.mdwn b/templates/video.mdwn
index ae42b5d..e2223f1 100644
--- a/templates/video.mdwn
+++ b/templates/video.mdwn
@@ -5,13 +5,14 @@
<script type="text/javascript" src="/js/app/counter.js"></script>
</TMPL_IF>
<div class="embed-responsive">
-<TMPL_IF stem><video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> class="embed-responsive-item" playsinline autoplay muted poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls>
+<video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> class="embed-responsive-item" playsinline autoplay muted poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls>
+<TMPL_UNLESS start>
<TMPL_UNLESS nomp4><source src="//media.couchdesign.dk/<TMPL_VAR stem>.webm" type="video/webm" />
</TMPL_UNLESS><TMPL_UNLESS nowebm><source src="//media.couchdesign.dk/<TMPL_VAR stem>.mp4" type="video/mp4" />
-</TMPL_UNLESS><img src="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" width="<TMPL_VAR width>" height="<TMPL_VAR height>"
+</TMPL_UNLESS></TMPL_UNLESS><img src="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" width="<TMPL_VAR width>" height="<TMPL_VAR height>"
title="Sorry, the video formats provided are not supported by your browser." />
</video>
-<TMPL_ELSE><video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> class="embed-responsive-item" playsinline autoplay muted controls />
+<TMPL_IF start>
[[!meta script="/js/lib/adapter.js"]]
[[!meta script="/js/lib/janus.nojquery.js"]]
<script type="text/javascript" src="/js/app/live-video.js"></script>