summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/video.mdwn15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/video.mdwn b/templates/video.mdwn
new file mode 100644
index 00000000..dafc63fb
--- /dev/null
+++ b/templates/video.mdwn
@@ -0,0 +1,15 @@
+<div class="video">
+<h2><TMPL_VAR title></h2>
+<video width="<TMPL_VAR width>" height="<TMPL_VAR height>" preload controls>
+<source src="//media.bynu.biks.dk/<TMPL_VAR stem>.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
+<TMPL_UNLESS noogg><source src="//media.bynu.biks.dk/<TMPL_VAR stem>.ogv" type='video/ogg; codecs="theora, vorbis"' />
+</TMPL_UNLESS><TMPL_UNLESS nowebm><source src="//media.bynu.biks.dk/<TMPL_VAR stem>.webm" type='video/webm; codecs="vp8, vorbis"' />
+</TMPL_UNLESS><img src="//media.bynu.biks.dk/<TMPL_VAR stem>.jpg" width="<TMPL_VAR width>" height="<TMPL_VAR height>"
+ title="Ingen videounderstøttelse, hent videoen i stedet." />
+</video>
+<p><strong>Hent video:</strong>
+<TMPL_UNLESS noogg><a href="//media.bynu.biks.dk/<TMPL_VAR stem>.ogv">Ogg</a>,
+</TMPL_UNLESS><TMPL_UNLESS nowebm><a href=//media.bynu.biks.dk/<TMPL_VAR stem>.webm>WebM</a>,
+</TMPL_UNLESS><a href="//media.bynu.biks.dk/<TMPL_VAR stem>.mp4">MP4</a>.
+</p>
+</div>