2014-04-24 07:08:10 +02:00
|
|
|
|
using MediaBrowser.Model.Dlna;
|
|
|
|
|
using System.Xml.Serialization;
|
2014-10-07 01:58:46 +02:00
|
|
|
|
using MediaBrowser.Model.Dlna.Profiles;
|
2014-03-23 17:42:02 +01:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Dlna.Profiles
|
|
|
|
|
{
|
2014-03-26 16:06:48 +01:00
|
|
|
|
[XmlRoot("Profile")]
|
|
|
|
|
public class PanasonicVieraProfile : DefaultProfile
|
2014-03-23 17:42:02 +01:00
|
|
|
|
{
|
2014-03-26 16:06:48 +01:00
|
|
|
|
public PanasonicVieraProfile()
|
|
|
|
|
{
|
|
|
|
|
Name = "Panasonic Viera";
|
2014-03-23 17:42:02 +01:00
|
|
|
|
|
2014-03-26 16:06:48 +01:00
|
|
|
|
Identification = new DeviceIdentification
|
|
|
|
|
{
|
|
|
|
|
FriendlyName = @"VIERA",
|
|
|
|
|
Manufacturer = "Panasonic",
|
2014-03-23 17:42:02 +01:00
|
|
|
|
|
2014-03-26 16:06:48 +01:00
|
|
|
|
Headers = new[]
|
2014-03-23 17:42:02 +01:00
|
|
|
|
{
|
|
|
|
|
new HttpHeaderInfo
|
|
|
|
|
{
|
|
|
|
|
Name = "User-Agent",
|
|
|
|
|
Value = "Panasonic MIL DLNA",
|
|
|
|
|
Match = HeaderMatchType.Substring
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-03-26 16:06:48 +01:00
|
|
|
|
};
|
2014-03-23 17:42:02 +01:00
|
|
|
|
|
2014-04-24 16:11:05 +02:00
|
|
|
|
XmlRootAttributes = new[]
|
2014-04-24 07:08:10 +02:00
|
|
|
|
{
|
|
|
|
|
new XmlAttribute
|
|
|
|
|
{
|
|
|
|
|
Name = "xmlns:pv",
|
|
|
|
|
Value = "http://www.pv.com/pvns/"
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2014-03-26 16:06:48 +01:00
|
|
|
|
TimelineOffsetSeconds = 10;
|
2014-03-23 17:42:02 +01:00
|
|
|
|
|
2014-03-26 16:06:48 +01:00
|
|
|
|
TranscodingProfiles = new[]
|
2014-03-23 17:42:02 +01: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 16:06:48 +01:00
|
|
|
|
DirectPlayProfiles = new[]
|
2014-03-23 17:42:02 +01: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 16:06:48 +01:00
|
|
|
|
ContainerProfiles = new[]
|
2014-03-23 17:42:02 +01: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 16:06:48 +01:00
|
|
|
|
CodecProfiles = new[]
|
2014-03-23 17:42:02 +01:00
|
|
|
|
{
|
|
|
|
|
new CodecProfile
|
|
|
|
|
{
|
2014-03-28 19:17:18 +01:00
|
|
|
|
Type = CodecType.Video,
|
2014-03-23 17:42:02 +01: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 05:17:14 +02:00
|
|
|
|
|
2014-08-06 03:09:03 +02:00
|
|
|
|
SubtitleProfiles = new[]
|
2014-07-17 05:17:14 +02:00
|
|
|
|
{
|
|
|
|
|
new SubtitleProfile
|
|
|
|
|
{
|
2014-08-06 03:09:03 +02:00
|
|
|
|
Format = "srt",
|
|
|
|
|
Method = SubtitleDeliveryMethod.External
|
2014-07-17 05:17:14 +02:00
|
|
|
|
}
|
|
|
|
|
};
|
2014-10-24 06:54:35 +02:00
|
|
|
|
|
|
|
|
|
ResponseProfiles = new[]
|
|
|
|
|
{
|
|
|
|
|
new ResponseProfile
|
|
|
|
|
{
|
|
|
|
|
Type = DlnaProfileType.Video,
|
|
|
|
|
Container = "ts",
|
|
|
|
|
OrgPn = "MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO",
|
|
|
|
|
MimeType = "video/vnd.dlna.mpeg-tts"
|
|
|
|
|
}
|
|
|
|
|
};
|
2014-03-26 16:06:48 +01:00
|
|
|
|
}
|
2014-03-23 17:42:02 +01:00
|
|
|
|
}
|
|
|
|
|
}
|