]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add mimetype for MKV videos
authorLukas Reschke <lukas@statuscode.ch>
Wed, 19 Mar 2014 16:45:20 +0000 (17:45 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Wed, 19 Mar 2014 16:45:20 +0000 (17:45 +0100)
This will make oC create previews for MKVs.

Test file: http://www.auby.no/files/video_tests/h264_720p_hp_5.1_3mbps_vorbis_styled_and_unstyled_subs_suzumiya.mkv

To test this just apply this change and upload the test file, if an preview is generated this change is most likely working as expecting.

lib/private/mimetypes.list.php

index a216414c9ddb7766a5e45e0cf5a65303d0052e91..91bcf584267604fb08da84c2661fb979f7d0b086 100644 (file)
@@ -77,6 +77,7 @@ return array(
        'md' => 'text/markdown',
        'mdb' => 'application/msaccess',
        'mdwn' => 'text/markdown',
+       'mkv' => 'video/x-matroska',
        'mobi' => 'application/x-mobipocket-ebook',
        'mov' => 'video/quicktime',
        'mp3' => 'audio/mpeg',