{% if media.poster_file %}{% thumbnail media.poster_file '640' as im %}poster="{{ im.url }}"{% endthumbnail %}{% endif %}
>
<source src="{% url 'teleforma-media-stream' period.id media.id %}" type="{{ media.mime_type }}" />
- <track kind="captions" src="{{ MEDIA_URL }}{{ media.track_file }}" srclang="fr" label="Français" default>
+ {% if media.track_file %}
+ <track kind="captions" src="{{ MEDIA_URL }}{{ media.track_file }}" srclang="fr" label="Français" default>
+ {% endif %}
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a
web browser that