SonyBlurayPlayerProfile.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. #pragma warning disable CS1591
  2. using MediaBrowser.Model.Dlna;
  3. namespace Emby.Dlna.Profiles
  4. {
  5. [System.Xml.Serialization.XmlRoot("Profile")]
  6. public class SonyBlurayPlayerProfile : DefaultProfile
  7. {
  8. public SonyBlurayPlayerProfile()
  9. {
  10. Name = "Sony Blu-ray Player";
  11. Identification = new DeviceIdentification
  12. {
  13. FriendlyName = @"Blu-ray Disc Player",
  14. Manufacturer = "Sony",
  15. Headers = new[]
  16. {
  17. new HttpHeaderInfo
  18. {
  19. Name = "X-AV-Client-Info",
  20. Value = @"(Blu-ray Disc Player|Home Theater System|Home Theatre System|Media Player)",
  21. Match = HeaderMatchType.Regex
  22. },
  23. new HttpHeaderInfo
  24. {
  25. Name = "X-AV-Physical-Unit-Info",
  26. Value = @"(Blu-ray Disc Player|Home Theater System|Home Theatre System|Media Player)",
  27. Match = HeaderMatchType.Regex
  28. }
  29. }
  30. };
  31. AddXmlRootAttribute("xmlns:av", "urn:schemas-sony-com:av");
  32. ModelName = "Windows Media Player Sharing";
  33. ModelNumber = "3.0";
  34. Manufacturer = "Microsoft Corporation";
  35. ProtocolInfo = "http-get:*:video/divx:DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMABASE;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMAFULL;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AAC_MULT5;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/mp4:DLNA.ORG_PN=AAC_ISO_320;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/vnd.dlna.adts:DLNA.ORG_PN=AAC_ADTS;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/vnd.dlna.adts:DLNA.ORG_PN=AAC_ADTS_320;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/flac:DLNA.ORG_PN=FLAC;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:audio/ogg:DLNA.ORG_PN=OGG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/png:DLNA.ORG_PN=PNG_LRG;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/png:DLNA.ORG_PN=PNG_TN;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/gif:DLNA.ORG_PN=GIF_LRG;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG1;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_NA_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_KO_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_JP_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-msvideo:DLNA.ORG_PN=AVI;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-flv:DLNA.ORG_PN=FLV;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-dvr:DLNA.ORG_PN=DVR_MS;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/wtv:DLNA.ORG_PN=WTV;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/ogg:DLNA.ORG_PN=OGV;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/vnd.rn-realvideo:DLNA.ORG_PN=REAL_VIDEO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_BASE;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_FULL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_FULL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_PRO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_PRO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L1_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L2_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L3_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/3gpp:DLNA.ORG_PN=MPEG4_P2_3GPP_SP_L0B_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/3gpp:DLNA.ORG_PN=MPEG4_P2_3GPP_SP_L0B_AMR;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/3gpp:DLNA.ORG_PN=MPEG4_H263_3GPP_P0_L10_AMR;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000,http-get:*:video/3gpp:DLNA.ORG_PN=MPEG4_H263_MP4_P0_L10_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=81500000000000000000000000000000";
  36. TranscodingProfiles = new[]
  37. {
  38. new TranscodingProfile
  39. {
  40. Container = "mp3",
  41. AudioCodec = "mp3",
  42. Type = DlnaProfileType.Audio
  43. },
  44. new TranscodingProfile
  45. {
  46. Container = "ts",
  47. VideoCodec = "mpeg2video",
  48. AudioCodec = "ac3",
  49. Type = DlnaProfileType.Video
  50. },
  51. new TranscodingProfile
  52. {
  53. Container = "jpeg",
  54. Type = DlnaProfileType.Photo
  55. }
  56. };
  57. DirectPlayProfiles = new[]
  58. {
  59. new DirectPlayProfile
  60. {
  61. Container = "ts,mpegts",
  62. VideoCodec = "mpeg1video,mpeg2video,h264",
  63. AudioCodec = "ac3,aac,mp3,pcm",
  64. Type = DlnaProfileType.Video
  65. },
  66. new DirectPlayProfile
  67. {
  68. Container = "mpeg",
  69. VideoCodec = "mpeg1video,mpeg2video",
  70. AudioCodec = "ac3,mp3,pcm",
  71. Type = DlnaProfileType.Video
  72. },
  73. new DirectPlayProfile
  74. {
  75. Container = "avi,mp4,m4v",
  76. VideoCodec = "mpeg4,h264",
  77. AudioCodec = "ac3,aac,mp3,pcm",
  78. Type = DlnaProfileType.Video
  79. },
  80. new DirectPlayProfile
  81. {
  82. Container = "mp3",
  83. AudioCodec = "mp3",
  84. Type = DlnaProfileType.Audio
  85. },
  86. new DirectPlayProfile
  87. {
  88. Container = "asf",
  89. AudioCodec = "wmav2,wmapro,wmavoice",
  90. Type = DlnaProfileType.Audio
  91. },
  92. new DirectPlayProfile
  93. {
  94. Container = "jpeg",
  95. Type = DlnaProfileType.Photo
  96. }
  97. };
  98. CodecProfiles = new[]
  99. {
  100. new CodecProfile
  101. {
  102. Type = CodecType.Video,
  103. Codec = "h264",
  104. Conditions = new[]
  105. {
  106. new ProfileCondition
  107. {
  108. Condition = ProfileConditionType.LessThanEqual,
  109. Property = ProfileConditionValue.Width,
  110. Value = "1920"
  111. },
  112. new ProfileCondition
  113. {
  114. Condition = ProfileConditionType.LessThanEqual,
  115. Property = ProfileConditionValue.Height,
  116. Value = "1080"
  117. },
  118. new ProfileCondition
  119. {
  120. Condition = ProfileConditionType.LessThanEqual,
  121. Property = ProfileConditionValue.VideoFramerate,
  122. Value = "30",
  123. IsRequired = false
  124. },
  125. new ProfileCondition
  126. {
  127. Condition = ProfileConditionType.LessThanEqual,
  128. Property = ProfileConditionValue.VideoLevel,
  129. Value = "41",
  130. IsRequired = false
  131. },
  132. new ProfileCondition
  133. {
  134. Condition = ProfileConditionType.LessThanEqual,
  135. Property = ProfileConditionValue.VideoBitrate,
  136. Value = "15360000",
  137. IsRequired = false
  138. }
  139. }
  140. },
  141. new CodecProfile
  142. {
  143. Type = CodecType.VideoAudio,
  144. Codec = "ac3",
  145. Conditions = new[]
  146. {
  147. new ProfileCondition
  148. {
  149. Condition = ProfileConditionType.LessThanEqual,
  150. Property = ProfileConditionValue.AudioChannels,
  151. Value = "6",
  152. IsRequired = false
  153. }
  154. }
  155. },
  156. new CodecProfile
  157. {
  158. Type = CodecType.VideoAudio,
  159. Codec = "aac",
  160. Conditions = new[]
  161. {
  162. new ProfileCondition
  163. {
  164. Condition = ProfileConditionType.LessThanEqual,
  165. Property = ProfileConditionValue.AudioChannels,
  166. Value = "2",
  167. IsRequired = false
  168. }
  169. }
  170. }
  171. };
  172. ContainerProfiles = new[]
  173. {
  174. new ContainerProfile
  175. {
  176. Type = DlnaProfileType.Photo,
  177. Conditions = new[]
  178. {
  179. new ProfileCondition
  180. {
  181. Condition = ProfileConditionType.LessThanEqual,
  182. Property = ProfileConditionValue.Width,
  183. Value = "1920"
  184. },
  185. new ProfileCondition
  186. {
  187. Condition = ProfileConditionType.LessThanEqual,
  188. Property = ProfileConditionValue.Height,
  189. Value = "1080"
  190. }
  191. }
  192. }
  193. };
  194. ResponseProfiles = new[]
  195. {
  196. new ResponseProfile
  197. {
  198. Container = "ts,mpegts",
  199. VideoCodec = "h264,mpeg4,vc1",
  200. AudioCodec = "ac3,aac,mp3",
  201. MimeType = "video/vnd.dlna.mpeg-tts",
  202. OrgPn = "MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO",
  203. Type = DlnaProfileType.Video
  204. },
  205. new ResponseProfile
  206. {
  207. Container = "avi",
  208. MimeType = "video/mpeg",
  209. Type = DlnaProfileType.Video
  210. },
  211. new ResponseProfile
  212. {
  213. Container = "mkv",
  214. MimeType = "video/vnd.dlna.mpeg-tts",
  215. Type = DlnaProfileType.Video
  216. },
  217. new ResponseProfile
  218. {
  219. Container = "ts,mpegts",
  220. MimeType = "video/vnd.dlna.mpeg-tts",
  221. Type = DlnaProfileType.Video
  222. },
  223. new ResponseProfile
  224. {
  225. Container = "mp4",
  226. MimeType = "video/mpeg",
  227. Type = DlnaProfileType.Video
  228. },
  229. new ResponseProfile
  230. {
  231. Container = "m4v",
  232. MimeType = "video/mpeg",
  233. Type = DlnaProfileType.Video
  234. },
  235. new ResponseProfile
  236. {
  237. Container = "mpeg",
  238. MimeType = "video/mpeg",
  239. Type = DlnaProfileType.Video
  240. },
  241. new ResponseProfile
  242. {
  243. Container = "mp3",
  244. MimeType = "audio/mpeg",
  245. Type = DlnaProfileType.Audio
  246. }
  247. };
  248. SubtitleProfiles = new[]
  249. {
  250. new SubtitleProfile
  251. {
  252. Format = "srt",
  253. Method = SubtitleDeliveryMethod.Embed
  254. }
  255. };
  256. }
  257. }
  258. }