jellyfin-server/MediaBrowser.Dlna/Profiles/DefaultProfile.cs

60 lines
1.6 KiB
C#
Raw Normal View History

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