Forum

How to allow viewing media files?

James
30 December 2013, 04:25
When I click on a link to a video, such as MKV or OGV, it immediately triggers a download instead of allowing the VLC plugin to handle it.

It's similar to the behavior of Dropbox when ?dl=1 is appended to a URL.

I suspect this has something to do with Mime types. What can I do to change this behavior and stop immediate trigger of a download?

Hiawatha version: 9.3
Operating System: Arch Linux
Hugo Leisink
30 December 2013, 09:59
Add the following mimetype to the Hiawatha configuration (/etc/hiawatha/mimetype.conf):
video/x-matroska                        mkv

This should do the trick. I've also added it to the default configuration. So, the next release will already have this.
James
30 December 2013, 17:51
Thanks!

Since you'll be fixing Mime issues in this next release, I'd like to note that the default mime type for AVI videos, video/avi, is not correct.

After commenting out the defective video/avi entry and adding a line
video/x-msvideo                         avi

AVI videos loaded fine with the default video plugin, and no longer triggered a download.

Some of the other media mime types may be defective; I didn't have any other media files on hand to test with.
This topic has been closed.