{% if "video" in mime_type %}
<div>
- <video id="my_video_1" class="video-js vjs-default-skin" width="362" height="240" controls preload="auto" data-setup="{}">
+ <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?) -->
<source src="{% url "telemeta-item-export" item.public_id mime_type|mime_to_ext %}" type="{{ mime_type }}" />
</video>
# -*- coding: utf-8 -*-
+
+# Copyright (C) 2010-2015 Parisson SARL
# Copyright (C) 2007-2010 Samalyse SARL
-# Copyright (C) 2010-2012 Parisson SARL
# This software is a computer program whose purpose is to backup, analyse,
# transcode and stream any audio content with its metadata over a web frontend.
#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'