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-04-22 19:25:54 +02:00
|
|
|
|
XDlnaDoc = "DMS-1.50";
|
|
|
|
|
|
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";
|
2014-05-08 23:23:24 +02:00
|
|
|
|
ModelUrl = "http://mediabrowser.tv/";
|
|
|
|
|
ManufacturerUrl = "http://mediabrowser.tv/";
|
2014-03-23 18:18:24 +01:00
|
|
|
|
|
2014-04-21 03:36:12 +02:00
|
|
|
|
AlbumArtPn = "JPEG_SM";
|
|
|
|
|
|
|
|
|
|
MaxAlbumArtHeight = 512;
|
|
|
|
|
MaxAlbumArtWidth = 512;
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|