Added more audio streaming improvements and extracted BaseMediaHandler

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-12 11:41:40 -04:00
parent f7ea68615b
commit 55aa5cb873
4 changed files with 180 additions and 151 deletions

View File

@@ -115,6 +115,14 @@ namespace MediaBrowser.Common.Net
{
return "audio/x-ms-wma";
}
else if (ext.EndsWith("flac", StringComparison.OrdinalIgnoreCase))
{
return "audio/flac";
}
else if (ext.EndsWith("aac", StringComparison.OrdinalIgnoreCase))
{
return "audio/x-aac";
}
else if (ext.EndsWith("ogg", StringComparison.OrdinalIgnoreCase) || ext.EndsWith("oga", StringComparison.OrdinalIgnoreCase))
{
return "audio/ogg";