E-CAM / presentation_extractor

Clowder extractor for captured video presentations
1 stars 0 forks source link

.preview extension used for video in extractor is probably a bad idea #20

Open ocaisa opened 4 years ago

ocaisa commented 4 years ago

We currently add a .preview extension to the compressed video we make in the extractor. This might be causing the problem we observe in #19 as the response coming back from Clowder when the file is requested is that it is a of mime-type video/preview which is not known and perhaps not treated the same way as a normal video by the browser.

Instead, we can probably make the extractor smarter so that if the file submitted is already a preview, it just does nothing.

ocaisa commented 4 years ago

This was indeed causing the problem with Safari, the only way to solve it was to rewrite the Content-Type in the header via the proxy server. For Apache this was:

Header edit Content-Type "video/preview" "video/mp4"