2014-05-21 01:26:14 +00:00
|
|
|
|
using MediaBrowser.Model.Dlna;
|
|
|
|
|
using System.Xml.Serialization;
|
2014-10-06 23:58:46 +00:00
|
|
|
|
using MediaBrowser.Model.Dlna.Profiles;
|
2014-05-21 01:26:14 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Dlna.Profiles
|
|
|
|
|
{
|
|
|
|
|
[XmlRoot("Profile")]
|
|
|
|
|
public class MediaMonkeyProfile : DefaultProfile
|
|
|
|
|
{
|
|
|
|
|
public MediaMonkeyProfile()
|
|
|
|
|
{
|
|
|
|
|
Name = "MediaMonkey";
|
|
|
|
|
|
|
|
|
|
SupportedMediaTypes = "Audio";
|
|
|
|
|
|
|
|
|
|
Identification = new DeviceIdentification
|
|
|
|
|
{
|
|
|
|
|
FriendlyName = @"MediaMonkey",
|
|
|
|
|
|
|
|
|
|
Headers = new[]
|
|
|
|
|
{
|
|
|
|
|
new HttpHeaderInfo
|
|
|
|
|
{
|
|
|
|
|
Name = "User-Agent",
|
|
|
|
|
Value = "MediaMonkey",
|
|
|
|
|
Match = HeaderMatchType.Substring
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
DirectPlayProfiles = new[]
|
|
|
|
|
{
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
|
{
|
|
|
|
|
Container = "mp3",
|
|
|
|
|
AudioCodec = "mp2,mp3",
|
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
|
{
|
|
|
|
|
Container = "mp4",
|
|
|
|
|
AudioCodec = "mp4",
|
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
|
{
|
|
|
|
|
Container = "aac,wav",
|
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
|
{
|
|
|
|
|
Container = "flac",
|
|
|
|
|
AudioCodec = "flac",
|
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
|
{
|
|
|
|
|
Container = "asf",
|
|
|
|
|
AudioCodec = "wmav2,wmapro,wmavoice",
|
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
|
{
|
|
|
|
|
Container = "ogg",
|
|
|
|
|
AudioCodec = "vorbis",
|
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|