move subtitles out of media streams in html
authorBoris Bobrov <breton@cynicmansion.ru>
Thu, 12 Jul 2018 17:04:45 +0000 (19:04 +0200)
committerBoris Bobrov <breton@cynicmansion.ru>
Thu, 12 Jul 2018 17:04:45 +0000 (19:04 +0200)
mediagoblin/templates/mediagoblin/media_displays/video.html

index 31825bfdfba30cae0a7a1f3b7b871325530408c5..f3e1978ed032f2ea8c37f804b5b9965a48c0cdb5 100644 (file)
               type="{{ media.media_manager['default_webm_type'] }}"
             {% endif %}
             label="{{ each_media_path[0] }}" res="{{ each_media_path[1][1] }}" />
-           {%- for subtitle in media.subtitle_files %}
-            <track src="{{ request.app.public_store.file_url(subtitle.filepath) }}"
-              label="{{ subtitle.name }}" kind="subtitles">
-           {%- endfor %}
     {% endfor %}
+    {%- for subtitle in media.subtitle_files %}
+    <track src="{{ request.app.public_store.file_url(subtitle.filepath) }}"
+      label="{{ subtitle.name }}" kind="subtitles">
+    {%- endfor %}
     <div class="no_html5">
       {%- trans -%}Sorry, this video will not work because
       your web browser does not support HTML5