]> git.parisson.com Git - teleforma.git/commitdiff
finally avoid live streaming URL and then X-Accel (overload when seeking) master-no-xaccel
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 24 Jul 2019 07:18:49 +0000 (09:18 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 24 Jul 2019 07:18:49 +0000 (09:18 +0200)
teleforma/templates/teleforma/course_media.html

index 9feada4e9b97cdba7c0baa5c0cb3f5531065753d..f3e5d3d7075b7d02a49fd6dfbd93a6fbe3109cf7 100644 (file)
@@ -97,7 +97,7 @@ $(document).ready(function(){
 {% if "video" in media.mime_type %}
 <div class="video">
     <video id="my_video_1" class="video-js vjs-default-skin" width="864" height="480" controls preload="auto" data-setup='{}' {% if media.item.related.all %}{% for related in media.item.related.all %}{% if related.title == "preview" %}{% thumbnail related.file "640" as im %}poster="{{ im.url }}"{% endthumbnail %}{% endif %}{% endfor %}{% endif %}>
-        <source src="{% url teleforma-media-stream period.id media.id %}" type="{{ media.mime_type }}" />
+        <source src="{{ MEDIA_URL }}{{ media.item.file }}" type="{{ media.mime_type }}" />
     </video>
 </div>
 
@@ -121,7 +121,7 @@ $(document).ready(function(){
 </div>
 <div class="audio">
     <audio controls preload="auto">
-        <source src="{% url teleforma-media-stream period.id media.id %}" type="{{ media.mime_type }}" />
+        <source src="{{ MEDIA_URL }}{{ media.item.file }}" type="{{ media.mime_type }}" />
     </audio>
 </div>
 {% endif %}