jellyfin/MediaBrowser.Dlna/Profiles/DefaultProfile.cs

59 lines
1.6 KiB
C#
Raw Normal View History

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