summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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>