summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-15 13:28:45 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-15 13:28:45 +0200
commit8edee2eab93c7be0c0b34e9898d4527a04c73dbd (patch)
treedcec1c5d72cdda51f37ec384fb9771676e4be654
parentbc4fcf7ba30fb3ec5681be45bed048758b0dd413 (diff)
Support format m3u8.
-rw-r--r--templates/video.mdwn3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/video.mdwn b/templates/video.mdwn
index de5fb58..a53af06 100644
--- a/templates/video.mdwn
+++ b/templates/video.mdwn
@@ -6,7 +6,8 @@
</TMPL_IF>
<div class="embed-responsive embed-responsive-16by9">
<video <TMPL_IF live-app>id="<TMPL_VAR live-app>"</TMPL_IF> class="embed-responsive-item" playsinline poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls>
-<TMPL_UNLESS live-app>
+<TMPL_UNLESS nom3u8><source src="//media.couchdesign.dk/<TMPL_VAR stem>.m3u8" type="application/vnd.apple.mpegURL" />
+</TMPL_UNLESS><TMPL_UNLESS live-app>
<TMPL_UNLESS nowebm><source src="//media.couchdesign.dk/<TMPL_VAR stem>.webm" type="video/webm" />
</TMPL_UNLESS><TMPL_UNLESS nomp4><source src="//media.couchdesign.dk/<TMPL_VAR stem>.mp4" type="video/mp4" />
</TMPL_UNLESS></TMPL_UNLESS><img src="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" width="<TMPL_VAR width>" height="<TMPL_VAR height>"