{% 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> -->
#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'