From 537b3553b8e630e24127844bcd971cd68f408568 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sun, 12 Aug 2012 13:05:20 -0400 Subject: [PATCH] More video mime types --- MediaBrowser.Common/Net/MimeTypes.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Common/Net/MimeTypes.cs b/MediaBrowser.Common/Net/MimeTypes.cs index 89264feb8..062456120 100644 --- a/MediaBrowser.Common/Net/MimeTypes.cs +++ b/MediaBrowser.Common/Net/MimeTypes.cs @@ -57,6 +57,14 @@ namespace MediaBrowser.Common.Net { return "video/x-ms-asf"; } + else if (ext.EndsWith("3gp", StringComparison.OrdinalIgnoreCase)) + { + return "video/3gpp"; + } + else if (ext.EndsWith("ts", StringComparison.OrdinalIgnoreCase)) + { + return "video/mp2t"; + } // Type text else if (ext.EndsWith("css", StringComparison.OrdinalIgnoreCase)) @@ -127,7 +135,13 @@ namespace MediaBrowser.Common.Net { return "audio/ogg"; } - + + // Playlists + else if (ext.EndsWith("m3u8", StringComparison.OrdinalIgnoreCase)) + { + return "application/x-mpegURL"; + } + throw new InvalidOperationException("Argument not supported: " + path); } }