]> git.parisson.com Git - telemeta.git/commitdiff
unload videojs
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 23 Mar 2015 22:07:13 +0000 (23:07 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 23 Mar 2015 22:07:13 +0000 (23:07 +0100)
telemeta/templates/telemeta/mediaitem_detail.html
telemeta/views/item.py

index 7dab0e42dd15cccf3e1477eb8b54396f3acd1d3f..03af98e66343cb7402c32aaf0d1395d01f9a11f0 100644 (file)
 
     {% if "video" in mime_type %}
     <div>
-    <video id="my_video_1" class="video-js vjs-default-skin" width="348" height="240" controls preload="auto" data-setup="{}">
-        <!-- Hello Chrome and Firefox (and Opera?) -->
+    <video width="348" height="240" controls preload="none">
         <source src="{% url "telemeta-item-export" item.public_id mime_type|mime_to_ext %}" type="{{ mime_type }}" />
-        </video>
-        <!--<div id="videotime"></div>-->
+    </video>
+    <!--<div id="videotime"></div>-->
     </div>
+
     <script>
     (function(){
         var v = document.getElementsByTagName('video')[0]
             },false);
             })();
     </script>
+
     {% endif %}
 
         <!-- </div> -->
index f2196bc9adcd2c97f767cca0b0c28ab5327806dd..bc3c9cc1836cb2f176a51bcb9936adcf2511bfdc 100644 (file)
@@ -256,7 +256,6 @@ class ItemView(ItemBaseMixin):
         #FIXME: MP4 handling in TimeSide
         if 'mp4' in extension:
             mime_type = 'video/mp4'
-            print 'ok'
             video = item.file.path
             response = StreamingHttpResponse(stream_from_file(video), mimetype = mime_type)
             response['Content-Disposition'] = 'attachment'