]> git.parisson.com Git - teleforma.git/commitdiff
re-add poster
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 4 Jan 2025 15:54:36 +0000 (16:54 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 4 Jan 2025 15:54:36 +0000 (16:54 +0100)
teleforma/templates/teleforma/course_media.html

index 36e6b81e653fcb785a4a52548a37c0564d2b3de2..9c7855e7b46f3e1c749416bc0bb4b5a649658933 100644 (file)
@@ -105,6 +105,7 @@ $(document).ready(function(){
         width="100%"
         height="auto"
         data-setup='{"playbackRates": [1, 1.25, 1.5, 2]}'
+        {% if media.poster_file %}{% thumbnail media.poster_file '864' as im %}poster="{{ im.url }}"{% endthumbnail %}{% endif %}
         >
             <source src="{% url 'teleforma-media-stream' period.id media.id %}" type="{{ media.mime_type }}" />
         <p class="vjs-no-js">