Changes in / [896ed6b:3e69810]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/views/base.py

    ra29e589 rbfc6b5f  
    931931            return render(request, 'telemeta/messages.html', {'description' : description}) 
    932932 
     933        #FIXME: MP4 handling in TimeSide 
     934        if 'mp4' in extension: 
     935            mime_type = 'video/mp4' 
     936            video = item.file.path 
     937            response = HttpResponse(stream_from_file(video), mimetype = mime_type) 
     938            response['Content-Disposition'] = 'attachment' 
     939            return response 
     940 
    933941        for encoder in self.encoders: 
    934942            if encoder.file_extension() == extension: 
Note: See TracChangeset for help on using the changeset viewer.