]> git.parisson.com Git - teleforma.git/commitdiff
transcoded (MP4) video by default
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 15 Apr 2015 08:34:11 +0000 (10:34 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 15 Apr 2015 08:34:11 +0000 (10:34 +0200)
teleforma/templates/teleforma/seminar_media_video.html

index dd4cbf10b3fa7196a6c822718a32dc3d52b92ef3..d3574326c75568985dc3fd8fae2bdf685697b692 100644 (file)
@@ -97,12 +97,12 @@ $(window).ready(function(){
 
 <div class="video">
 <video id="my_video_1" class="video-js vjs-default-skin" width="640" height="360" controls preload="metadata" {% if media.item.related.all %}{% for related in media.item.related.all %}{% if related.title == "preview" %}poster="{{ MEDIA_URL }}{{ related.file }}"{% endif %}{% endfor %}{% endif %} data-setup='{}'>
-    <source src="{{ MEDIA_URL }}{{ media.item.file }}#t=0" type="{{ media.mime_type }}" />
   {% for transcoded in media.item.transcoded.all %}
    {% if "video" in transcoded.mime_type %}
     <source src="{{ MEDIA_URL }}{{ transcoded.file }}#t=0" type="{{ transcoded.mime_type }}" />
    {% endif %}
   {% endfor %}
+    <source src="{{ MEDIA_URL }}{{ media.item.file }}#t=0" type="{{ media.mime_type }}" />
 </video>
 </div>