diff options
-rw-r--r-- | show.mdwn | 1 | ||||
-rw-r--r-- | templates/video.mdwn | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/show.mdwn b/show.mdwn new file mode 100644 index 0000000..e1f0cd6 --- /dev/null +++ b/show.mdwn @@ -0,0 +1 @@ +[[!template id=video title="Presentation" stem=omni/show0 width=640 height=360]] diff --git a/templates/video.mdwn b/templates/video.mdwn new file mode 100644 index 0000000..63400de --- /dev/null +++ b/templates/video.mdwn @@ -0,0 +1,9 @@ +<div class="video"> +<h2><TMPL_VAR title></h2> +<video playsinline autoplay muted loop poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg"> +<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> +</div> |