summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2020-12-08 22:54:30 -0500
committerSacha Chua <sacha@sachachua.com>2020-12-08 22:54:30 -0500
commit2bc3d2e875b8afb39e7024ec810151663a4a14bc (patch)
tree92dcfb554c209b18d402077327182e67a4b2376e
parent6d73ec4e90ee7262192e11bcd57eb4d9ba131b22 (diff)
downloademacsconf-wiki-2bc3d2e875b8afb39e7024ec810151663a4a14bc.tar.xz
emacsconf-wiki-2bc3d2e875b8afb39e7024ec810151663a4a14bc.zip
Fix subtitle track
-rw-r--r--templates/vid.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/vid.md b/templates/vid.md
index 4f968281..54ac2778 100644
--- a/templates/vid.md
+++ b/templates/vid.md
@@ -1,11 +1,11 @@
<div class="vid">
<video controls preload="metadata">
<source src="<TMPL_VAR src>" type="<TMPL_VAR type>" />
+ <TMPL_IF subtitles>
+ <track label="English" kind="subtitles" 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>
- <TMPL_IF subtitles>
- <track label="English" kind="subtitles" srclang="en" src="<TMPL_VAR subtitles>" default>
- </TMPL_IF>
</video>
</div>
<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>