Mercurial > sat_legacy_website
diff templates/sat_website/membership.html @ 93:9ae3d9c8b28a
actually display the subtitles (with Firefox it is used only when it's the first <track /> of the list, and when the "default" option is present)
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 16 Jun 2015 21:26:58 +0200 |
parents | 5de2a3dd4e67 |
children | e138879873f1 |
line wrap: on
line diff
--- a/templates/sat_website/membership.html Tue Jun 16 20:31:16 2015 +0200 +++ b/templates/sat_website/membership.html Tue Jun 16 21:26:58 2015 +0200 @@ -33,7 +33,9 @@ <video class="video-campaign" poster="http://ftp.goffi.org/media/video/posters/libervia_adhesion_2015.png" controls preload="none"> <source src="http://ftp.goffi.org/media/video/libervia_adhesion_2015_{{LANGUAGE_CODE}}.webm" type='video/webm; codecs="vp8.0, vorbis"'> <source src="http://ftp.goffi.org/media/video/libervia_adhesion_2015_{{LANGUAGE_CODE}}.ogv" type='video/ogg; codecs="theora, vorbis"'> - {% blocktrans with firefox="<a href=\"http://www.mozilla.org/\">Firefox</a>" %}Your browser doesn't manage the « video » tag, you should update, e.g. with the last {{ firefox }}.{% endblocktrans %} + {% get_language_info for LANGUAGE_CODE as lang %} + <track label="{{lang.name_local}}" src="http://ftp.goffi.org/media/video/libervia_adhesion_2015_{{LANGUAGE_CODE}}.vtt" kind="subtitles" srclang="{{LANGUAGE_CODE}}" default /> + {% blocktrans with firefox="<a href=\"http://www.mozilla.org/\">Firefox</a>" %}Your browser doesn't manage the « video » tag, you should update, e.g. with the last {{ firefox }}.{% endblocktrans %} </video> </div> </div>