2014-04-03 22:50:04 +00:00
|
|
|
|
using MediaBrowser.Model.Dlna;
|
|
|
|
|
using System.Xml.Serialization;
|
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 XboxOneProfile : DefaultProfile
|
|
|
|
|
{
|
|
|
|
|
public XboxOneProfile()
|
|
|
|
|
{
|
|
|
|
|
Name = "Xbox One";
|
|
|
|
|
|
|
|
|
|
Identification = new DeviceIdentification
|
|
|
|
|
{
|
|
|
|
|
ModelName = "Xbox One",
|
|
|
|
|
FriendlyName = "Xbox-SystemOS"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
TranscodingProfiles = new[]
|
|
|
|
|
{
|
|
|
|
|
new TranscodingProfile
|
|
|
|
|
{
|
|
|
|
|
Container = "mp3",
|
|
|
|
|
AudioCodec = "mp3",
|
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
|
},
|
|
|
|
|
new TranscodingProfile
|
|
|
|
|
{
|
|
|
|
|
Container = "ts",
|
|
|
|
|
VideoCodec = "h264",
|
|
|
|
|
AudioCodec = "aac",
|
|
|
|
|
Type = DlnaProfileType.Video
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
DirectPlayProfiles = new[]
|
|
|
|
|
{
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
|
{
|
2014-03-23 19:36:25 +00:00
|
|
|
|
Container = "mp3,wma",
|
2014-03-23 16:42:02 +00:00
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2014-04-01 04:16:25 +00:00
|
|
|
|
ResponseProfiles = new[]
|
2014-03-23 16:42:02 +00:00
|
|
|
|
{
|
2014-04-01 04:16:25 +00:00
|
|
|
|
new ResponseProfile
|
2014-03-23 16:42:02 +00:00
|
|
|
|
{
|
|
|
|
|
Container = "avi",
|
|
|
|
|
MimeType = "video/x-msvideo",
|
|
|
|
|
Type = DlnaProfileType.Video
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|