summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/vid.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/vid.md b/templates/vid.md
index 803e0fb6..37af8bf5 100644
--- a/templates/vid.md
+++ b/templates/vid.md
@@ -1,5 +1,5 @@
<div class="vid">
-<video controls preload="metadata">
+<video controls preload="metadata" id="<TMPL_VAR vidid>" onload="var mainVideo = document.getElementById(<TMPL_VAR vidid>)">
<source src="<TMPL_VAR src>" type="<TMPL_VAR type>" />
<TMPL_IF subtitles>
<track label="English" kind="subtitles" srclang="en" src="<TMPL_VAR subtitles>" default />