use video/webm instead of audio/webm for webm
authorJan Gerber <jgerber@wikimedia.org>
Fri, 28 Dec 2012 16:02:36 +0000 (16:02 +0000)
committerJan Gerber <jgerber@wikimedia.org>
Fri, 28 Dec 2012 16:05:24 +0000 (16:05 +0000)
StreamFile::contentTypeFromPath via MimeMagic::guessTypesForExtension
returns the first mime type for a given extension listed in
includes/mime.types. This is used to set the mime type of files in
SWIFT. While audio/webm is a valid mime type for .webm files,
we only have videos with .webm right now. moving video/webm
up to make it the default mime type.

This fixes issues with players that will only show a video if
type is video/webm: Bug 43476

Change-Id: Ib4868995a9b2f474e656ecc4b23a18201fbeb572

includes/mime.types

index 5b64201..a89d229 100644 (file)
@@ -65,6 +65,7 @@ audio/basic au snd
 audio/midi mid midi kar
 audio/mpeg mpga mp2 mp3
 audio/ogg oga ogg spx
+video/webm webm
 audio/webm webm
 audio/x-aiff aif aiff aifc
 audio/x-matroska mka mkv
@@ -120,7 +121,6 @@ video/mpeg mpeg mpg mpe
 video/ogg ogv ogm ogg
 video/quicktime qt mov
 video/vnd.mpegurl mxu
-video/webm webm
 video/x-flv flv
 video/x-matroska mkv mka
 video/x-msvideo avi