Код: Выделить всё
private static IDictionary<string, string> VideoMIMEmappings = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase) {
#region Big freaking list of mime types
{".3g2" , "video/3gpp"},
{".3gp" , "video/3gpp"},
{".3gp2", "video/3gpp2"},
{".3gpp", "video/3gpp"},
{".asf" , "video/x-ms-asf"},
{".asr" , "video/x-ms-asf"},
{".asx" , "video/x-ms-asf"},
{".avi" , "video/avi"},
{".dif" , "video/x-dv"},
{".divx", "video/avi"},
{".dvr-ms","video/x-ms-dvr"},
{".dv" , "video/x-dv"},
{".evo" , "video/mpeg"},
{".flv" , "video/x-flv"},
{".IVF" , "video/x-ivf"},
{".lsf" , "video/x-la-asf"},
{".lsx" , "video/x-la-asf"},
{".m1v" , "video/mpeg"},
{".m2t" , "video/vnd.dlna.mpeg-tts"},
{".m2ts", "video/vnd.dlna.mpeg-tts"},
{".m2v" , "video/mpeg"},
{".m4v" , "video/mp4"},
{".mkv" , "video/x-matroska"},
{".mod" , "video/mpeg"},
{".mov" , "video/quicktime"},
{".movie","video/x-sgi-movie"},
{".mp2v", "video/mpeg"},
{".mp4" , "video/mp4"},
{".mp4v", "video/mp4"},
{".mpe" , "video/mpeg"},
{".mpeg", "video/mpeg"},
{".mpg" , "video/mpeg"},
{".mpv2", "video/mpeg"},
{".mqv" , "video/quicktime"},
{".mts" , "video/vnd.dlna.mpeg-tts"},
{".ogm" , "video/x-ogm"},
{".nsc" , "video/x-ms-asf"},
{".qt" , "video/quicktime"},
{".smpg" , "video/x-mpegurl"},
{".ssif" , "video/vnd.dlna.mpeg-tts"},
{".tp" , "video/mpeg"},
{".ts" , "video/vnd.dlna.mpeg-tts"},
{".tts" , "video/vnd.dlna.mpeg-tts"},
{".vbk" , "video/mpeg"},
{".vob" , "video/mpeg"},
{".webm" , "video/webm"},
{".wm" , "video/x-ms-wm"},
{".wmp" , "video/x-ms-wmp"},
{".wmv" , "video/x-ms-wmv"},
{".wmx" , "video/x-ms-wmx"},
{".wvx" , "video/x-ms-wvx"},
{".wtv" , "video/wtv"},
{".xvid" , "video/avi"},
{".aac" , "audio/vnd.dlna.adts"},
{".ac3" , "audio/ac3"},
{".ADT" , "audio/vnd.dlna.adts"},
{".ADTS" , "audio/vnd.dlna.adts"},
{".aif" , "audio/aiff"},
{".aifc" , "audio/aiff"},
{".aiff" , "audio/aiff"},
{".amr" , "audio/amr"},
{".ape" , "audio/x-ape"},
{".au" , "audio/basic"},
{".awb" , "audio/awb"},
{".cda" , "audio/cda"},
{".dff" , "audio/x-dff"},
{".dsf" , "audio/x-dsf"},
{".dts" , "audio/dts"},
{".flac" , "audio/x-flac"},
{".m3u" , "audio/x-mpegurl"},
{".m4a" , "audio/mp4"},
{".mid" , "audio/mid"},
{".midi" , "audio/mid"},
{".mka" , "audio/x-matroska"},
{".mp1" , "audio/mpeg"},
{".mp2" , "audio/mpeg"},
{".mp3" , "audio/mpeg"},
{".mpa" , "audio/mpeg"},
{".rmi" , "audio/mid"},
{".s16be" , "audio/L16"},
{".smp3" , "audio/x-mpegurl"},
{".snd" , "audio/basic"},
{".wav" , "audio/x-wav"},
{".wax" , "audio/x-ms-wax"},
{".wma" , "audio/x-ms-wma"},
{ ".bmp" , "image/bmp"},
{ ".bw" , "image/bw"},
{ ".cel" , "image/cel"},
{ ".cut" , "image/cut"},
{ ".dib" , "image/dib"},
{ ".emf" , "image/emf"},
{ ".eps" , "image/eps"},
{ ".fax" , "image/fax"},
{ ".gif" , "image/gif"},
{ ".icb" , "image/icb"},
{ ".ico" , "image/x-icon"},
{ ".jfif" , "image/jpeg"},
{ ".jpe" , "image/jpeg"},
{ ".jpeg" , "image/jpeg"},
{ ".jpg" , "image/jpeg"},
{ ".jps" , "image/x-jps|image/jpeg"},
{ ".pbm" , "image/pbm"},
{ ".pcc" , "image/pcc"},
{ ".pcd" , "image/pcd"},
{ ".pcx" , "image/pcx"},
{ ".pdd" , "image/pdd"},
{ ".pgm" , "image/pgm"},
{ ".pic" , "image/pic"},
{ ".png" , "image/png"},
{ ".pns" , "iimage/pns|image/png"},
{ ".ppm" , "image/ppm"},
{ ".psd" , "image/psd"},
{ ".psp" , "image/psp"},
{ ".rgb" , "image/rgb"},
{ ".rgba" , "image/rgba"},
{ ".rla" , "image/rla"},
{ ".rle" , "image/rle"},
{ ".rpf" , "image/rpf"},
{ ".scr" , "image/scr"},
{ ".sgi" , "image/sgi"},
{ ".svg" , "image/svg+xml"},
{ ".tga" , "image/tga"},
{ ".tif" , "image/tiff"},
{ ".tiff" , "image/tiff"},
{ ".wdp" , "image/vnd.ms-photo"}