]> git.parisson.com Git - teleforma.git/commitdiff
straight and secured media access
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 14 Feb 2024 09:03:00 +0000 (10:03 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 14 Feb 2024 09:03:00 +0000 (10:03 +0100)
teleforma/templates/teleforma/course_media.html

index f10fa6a07e048768d2c1b2b471869efb305d7e02..e4aa82b8d1c34579948f3cb78d1e163fc26f9f5b 100644 (file)
@@ -106,11 +106,7 @@ $(document).ready(function(){
         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 %}
         >
-        {% if value_from_settings DEBUG %}
-            <source src="{{ media_url }}{{ media.file }}" type="{{ media.mime_type }}" />
-        {% else %}
             <source src="{% url 'teleforma-media-stream' period.id media.id %}" type="{{ media.mime_type }}" />
-        {% endif %}
         <p class="vjs-no-js">
           To view this video please enable JavaScript, and consider upgrading to a
           web browser that
@@ -147,11 +143,7 @@ $(document).ready(function(){
 </div>
 <div class="audio">
     <audio controls preload="auto">
-        {% if value_from_settings DEBUG %}
-            <source src="{{ media_url }}{{ media.file }}" type="{{ media.mime_type }}" />
-        {% else %}
             <source src="{% url 'teleforma-media-stream' period.id media.id %}" type="{{ media.mime_type }}" />
-        {% endif %}
     </audio>
 </div>
 {% endif %}