summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-03-25 21:12:15 +0100
committerJonas Smedegaard <dr@jones.dk>2017-03-25 21:12:15 +0100
commit76b80fa209f7e2e940739b3573544b21386da19f (patch)
tree70d2d87fb3e5e63606f98e0a35bcd06e3667635f
parentfa8c3e5736a0046f4b391d8d8c77c2ef733291f8 (diff)
Video without stem is live.
-rw-r--r--show.mdwn2
-rw-r--r--templates/video.mdwn5
2 files changed, 4 insertions, 3 deletions
diff --git a/show.mdwn b/show.mdwn
index e1f0cd6..6a8db53 100644
--- a/show.mdwn
+++ b/show.mdwn
@@ -1 +1 @@
-[[!template id=video title="Presentation" stem=omni/show0 width=640 height=360]]
+[[!template id=video title="Presentation"]]
diff --git a/templates/video.mdwn b/templates/video.mdwn
index 193fe77..edb681b 100644
--- a/templates/video.mdwn
+++ b/templates/video.mdwn
@@ -1,11 +1,12 @@
<div class="video">
<h2><TMPL_VAR title></h2>
<div class="videocontainer">
-<video playsinline autoplay muted loop poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls>
+<TMPL_IF stem><video playsinline autoplay muted poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls>
<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>"
title="Sorry, the video formats provided are not supported by your browser." />
-</video>
+<TMPL_ELSE><video playsinline autoplay muted controls>
+</TMPL_IF></video>
</div>
</div>