diff options
author | saksham1115 <saksham115@gmail.com> | 2016-05-29 17:35:24 +0000 |
---|---|---|
committer | saksham1115 <saksham115@gmail.com> | 2016-07-19 17:28:57 +0000 |
commit | 74bc86732e016f5926f5654525485afb6411bb8d (patch) | |
tree | 47aca2a12d09a2b7dc13117fc6d519eb29964d59 /mediagoblin/templates | |
parent | 3019306e0037b994ebc7f0d8f27fc1f1f92dbc8f (diff) | |
download | mediagoblin-74bc86732e016f5926f5654525485afb6411bb8d.tar.lz mediagoblin-74bc86732e016f5926f5654525485afb6411bb8d.tar.xz mediagoblin-74bc86732e016f5926f5654525485afb6411bb8d.zip |
Subtitle interface using attachments
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r-- | mediagoblin/templates/mediagoblin/media_displays/video.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/templates/mediagoblin/media_displays/video.html b/mediagoblin/templates/mediagoblin/media_displays/video.html index 5aac3529..c9a27702 100644 --- a/mediagoblin/templates/mediagoblin/media_displays/video.html +++ b/mediagoblin/templates/mediagoblin/media_displays/video.html @@ -60,6 +60,10 @@ {% else %} type="{{ media.media_manager['default_webm_type'] }}" {% endif %} /> + {%- for attachment in media.attachment_files %} + <track src="{{ request.app.public_store.file_url(attachment.filepath) }}" + label = "{{- attachment.name -}}" kind="subtitles" > + {%- endfor %} <div class="no_html5"> {%- trans -%}Sorry, this video will not work because your web browser does not support HTML5 |