]> git.parisson.com Git - teleforma.git/commitdiff
add video playback rate
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 24 Feb 2022 18:44:20 +0000 (19:44 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 24 Feb 2022 18:44:20 +0000 (19:44 +0100)
teleforma/templates/teleforma/course_media.html

index 213f492d3c1bc6f409ef5ad88bd43f8e0fe16cac..1daaee74928eabe91285e61ec598009977f50254 100644 (file)
@@ -102,7 +102,7 @@ $(document).ready(function(){
         preload="auto"
         width="100%"
         height="auto"
-        data-setup="{}"
+        data-setup='{"playbackRates": [1, 1.25, 1.5, 2]}'
         {% if media.poster_file %}{% thumbnail media.poster_file '640' as im %}poster="{{ im.url }}"{% endthumbnail %}{% endif %}
         >
         <source src="{{ MEDIA_URL }}{{ media.file }}" type="{{ media.mime_type }}" />