summaryrefslogtreecommitdiffstats
path: root/templates/vid.md
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vid.md')
-rw-r--r--templates/vid.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/templates/vid.md b/templates/vid.md
index a0d0e3a9..2a48e3a0 100644
--- a/templates/vid.md
+++ b/templates/vid.md
@@ -1,7 +1,13 @@
-<div class="vid">
- <video controls preload="metadata">
- <source src="<TMPL_VAR src>" type="<TMPL_VAR type>" />
- <p><em>Your browser does not support the video tag,
- please download the video instead.</em></p>
- </video>
+<div class="vid" data-id="<TMPL_VAR vidid>">
+<video controls preload="metadata" id="<TMPL_VAR vidid>" poster="<TMPL_VAR poster>">
+<source src="<TMPL_VAR src>" type="<TMPL_VAR type>" /><TMPL_VAR captions>
+<TMPL_IF subtitles>
+<track label="English" kind="captions" srclang="en" src="<TMPL_VAR subtitles>" default />
+</TMPL_IF>
+<p><em>Your browser does not support the video tag, please download the video instead.</em></p>
+</video>
+<div class="resources">
+ <a href="<TMPL_VAR src>"><TMPL_IF download><TMPL_VAR download><TMPL_ELSE>Download video</TMPL_IF><TMPL_IF duration>, <TMPL_VAR duration></TMPL_IF><TMPL_IF size>, <TMPL_VAR size></TMPL_IF></a><br />
+ <TMPL_IF subtitles><a href="<TMPL_VAR subtitles>">Download captions</a><br /></TMPL_IF><TMPL_VAR other_resources>
+</div>
</div>