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

207 lines
6.1 KiB
C#
Raw Normal View History

2014-04-24 05:08:10 +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")]
public class PanasonicVieraProfile : DefaultProfile
2014-03-23 16:42:02 +00:00
{
2014-03-26 15:06:48 +00:00
public PanasonicVieraProfile()
{
Name = "Panasonic Viera";
2014-03-23 16:42:02 +00:00
2014-03-26 15:06:48 +00:00
Identification = new DeviceIdentification
{
FriendlyName = @"VIERA",
Manufacturer = "Panasonic",
2014-03-23 16:42:02 +00:00
2014-03-26 15:06:48 +00:00
Headers = new[]
2014-03-23 16:42:02 +00:00
{
new HttpHeaderInfo
{
Name = "User-Agent",
Value = "Panasonic MIL DLNA",
Match = HeaderMatchType.Substring
}
}
2014-03-26 15:06:48 +00:00
};
2014-03-23 16:42:02 +00:00
2014-04-24 14:11:05 +00:00
XmlRootAttributes = new[]
2014-04-24 05:08:10 +00:00
{
new XmlAttribute
{
Name = "xmlns:pv",
Value = "http://www.pv.com/pvns/"
}
};
2014-03-26 15:06:48 +00:00
TimelineOffsetSeconds = 10;
2014-03-23 16:42:02 +00:00
2014-03-26 15:06:48 +00:00
TranscodingProfiles = new[]
2014-03-23 16:42:02 +00:00
{
new TranscodingProfile
{
Container = "mp3",
AudioCodec = "mp3",
Type = DlnaProfileType.Audio
},
new TranscodingProfile
{
Container = "ts",
AudioCodec = "ac3",
VideoCodec = "h264",
Type = DlnaProfileType.Video
},
new TranscodingProfile
{
Container = "jpeg",
Type = DlnaProfileType.Photo
}
};
2014-03-26 15:06:48 +00:00
DirectPlayProfiles = new[]
2014-03-23 16:42:02 +00:00
{
new DirectPlayProfile
{
Container = "mpeg",
VideoCodec = "mpeg2video,mpeg4",
AudioCodec = "ac3,mp3",
Type = DlnaProfileType.Video
},
new DirectPlayProfile
{
Container = "mkv",
VideoCodec = "h264",
AudioCodec = "aac,ac3,mp3,pcm",
Type = DlnaProfileType.Video
},
new DirectPlayProfile
{
Container = "ts",
VideoCodec = "h264",
AudioCodec = "aac,mp3",
Type = DlnaProfileType.Video
},
new DirectPlayProfile
{
Container = "mp4",
VideoCodec = "h264",
AudioCodec = "aac,ac3,mp3,pcm",
Type = DlnaProfileType.Video
},
new DirectPlayProfile
{
Container = "mov",
VideoCodec = "h264",
AudioCodec = "aac,pcm",
Type = DlnaProfileType.Video
},
new DirectPlayProfile
{
Container = "avi",
VideoCodec = "mpeg4",
AudioCodec = "pcm",
Type = DlnaProfileType.Video
},
new DirectPlayProfile
{
Container = "flv",
VideoCodec = "h264",
AudioCodec = "aac",
Type = DlnaProfileType.Video
},
new DirectPlayProfile
{
Container = "mp3",
AudioCodec = "mp3",
Type = DlnaProfileType.Audio
},
new DirectPlayProfile
{
Container = "mp4",
AudioCodec = "aac",
Type = DlnaProfileType.Audio
},
new DirectPlayProfile
{
Container = "jpeg",
Type = DlnaProfileType.Photo
}
};
2014-03-26 15:06:48 +00:00
ContainerProfiles = new[]
2014-03-23 16:42:02 +00:00
{
new ContainerProfile
{
Type = DlnaProfileType.Photo,
Conditions = new []
{
new ProfileCondition
{
Condition = ProfileConditionType.LessThanEqual,
Property = ProfileConditionValue.Width,
Value = "1920"
},
new ProfileCondition
{
Condition = ProfileConditionType.LessThanEqual,
Property = ProfileConditionValue.Height,
Value = "1080"
}
}
}
};
2014-03-26 15:06:48 +00:00
CodecProfiles = new[]
2014-03-23 16:42:02 +00:00
{
new CodecProfile
{
Type = CodecType.Video,
2014-03-23 16:42:02 +00:00
Conditions = new[]
{
new ProfileCondition
{
Condition = ProfileConditionType.LessThanEqual,
Property = ProfileConditionValue.Width,
Value = "1920"
},
new ProfileCondition
{
Condition = ProfileConditionType.LessThanEqual,
Property = ProfileConditionValue.Height,
Value = "1080"
},
new ProfileCondition
{
Condition = ProfileConditionType.LessThanEqual,
Property = ProfileConditionValue.VideoBitDepth,
Value = "8",
IsRequired = false
}
}
}
};
2014-07-17 03:17:14 +00:00
SubtitleProfiles = new[]
2014-07-17 03:17:14 +00:00
{
new SubtitleProfile
{
Format = "srt",
Method = SubtitleDeliveryMethod.External
2014-07-17 03:17:14 +00:00
}
};
2014-03-26 15:06:48 +00:00
}
2014-03-23 16:42:02 +00:00
}
}