jellyfin/MediaBrowser.Dlna/Profiles/DefaultProfile.cs

63 lines
1.7 KiB
C#
Raw Normal View History

2014-03-23 09:42:02 -07:00
using MediaBrowser.Controller.Dlna;
2014-03-26 08:06:48 -07:00
using System.Xml.Serialization;
2014-03-23 09:42:02 -07:00
namespace MediaBrowser.Dlna.Profiles
{
2014-03-26 08:06:48 -07:00
[XmlRoot("Profile")]
2014-03-23 09:42:02 -07:00
public class DefaultProfile : DeviceProfile
{
public DefaultProfile()
{
2014-03-26 13:14:47 -07:00
Name = "Generic Device";
2014-03-24 22:25:03 -07:00
2014-03-23 10:18:24 -07:00
ProtocolInfo = "DLNA";
2014-03-26 13:14:47 -07:00
FriendlyName = "Media Browser";
2014-03-23 10:18:24 -07:00
Manufacturer = "Media Browser";
ModelDescription = "Media Browser";
ModelName = "Media Browser";
ModelNumber = "Media Browser";
ModelUrl = "http://mediabrowser3.com/";
ManufacturerUrl = "http://mediabrowser3.com/";
2014-03-23 09:42:02 -07:00
TranscodingProfiles = new[]
{
new TranscodingProfile
{
Container = "mp3",
AudioCodec = "mp3",
Type = DlnaProfileType.Audio
},
new TranscodingProfile
{
Container = "ts",
Type = DlnaProfileType.Video,
AudioCodec = "aac",
VideoCodec = "h264",
Settings = new []
{
new TranscodingSetting {Name = TranscodingSettingType.VideoProfile, Value = "baseline"}
}
}
};
DirectPlayProfiles = new[]
{
new DirectPlayProfile
{
Container = "mp3,wma",
Type = DlnaProfileType.Audio
},
new DirectPlayProfile
{
Container = "avi,mp4",
Type = DlnaProfileType.Video
}
};
}
}
}