More video mime types
This commit is contained in:
parent
55aa5cb873
commit
537b3553b8
|
@ -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))
|
||||
|
@ -128,6 +136,12 @@ 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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user