jellyfin/MediaBrowser.Dlna/Profiles/Foobar2000Profile.cs

77 lines
2.0 KiB
C#
Raw Normal View History

2014-04-24 07:11:05 -07:00
using MediaBrowser.Model.Dlna;
2014-03-26 09:10:46 -07:00
using System.Xml.Serialization;
2014-10-06 16:58:46 -07:00
using MediaBrowser.Model.Dlna.Profiles;
2014-03-24 22:25:03 -07:00
namespace MediaBrowser.Dlna.Profiles
{
2014-03-26 08:06:48 -07:00
[XmlRoot("Profile")]
2014-03-24 22:25:03 -07:00
public class Foobar2000Profile : DefaultProfile
{
public Foobar2000Profile()
{
Name = "foobar2000";
2014-03-26 09:10:46 -07:00
SupportedMediaTypes = "Audio";
2014-03-24 22:25:03 -07:00
Identification = new DeviceIdentification
{
FriendlyName = @"foobar",
Headers = new[]
{
new HttpHeaderInfo
{
Name = "User-Agent",
Value = "foobar",
Match = HeaderMatchType.Substring
}
}
};
2014-05-20 18:26:14 -07:00
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
}
};
2014-03-24 22:25:03 -07:00
}
}
}