Windows81Profile.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. using MediaBrowser.Model.Dlna;
  2. using System.Xml.Serialization;
  3. namespace MediaBrowser.Dlna.Profiles
  4. {
  5. [XmlRoot("Profile")]
  6. public class Windows81Profile : DefaultProfile
  7. {
  8. public Windows81Profile()
  9. {
  10. Name = "Windows 8/RT";
  11. Identification = new DeviceIdentification
  12. {
  13. Manufacturer = "Microsoft SDK Customer"
  14. };
  15. TranscodingProfiles = new[]
  16. {
  17. new TranscodingProfile
  18. {
  19. Container = "mp3",
  20. AudioCodec = "mp3",
  21. Type = DlnaProfileType.Audio
  22. },
  23. new TranscodingProfile
  24. {
  25. Protocol = "hls",
  26. Container = "ts",
  27. VideoCodec = "h264",
  28. AudioCodec = "aac",
  29. Type = DlnaProfileType.Video,
  30. VideoProfile = "Baseline"
  31. },
  32. new TranscodingProfile
  33. {
  34. Container = "ts",
  35. VideoCodec = "h264",
  36. AudioCodec = "aac",
  37. Type = DlnaProfileType.Video,
  38. VideoProfile = "Baseline"
  39. }
  40. };
  41. DirectPlayProfiles = new[]
  42. {
  43. new DirectPlayProfile
  44. {
  45. Container = "mp4,mov",
  46. VideoCodec = "h264,mpeg4",
  47. AudioCodec = "aac,ac3,eac3,mp3,pcm",
  48. Type = DlnaProfileType.Video
  49. },
  50. new DirectPlayProfile
  51. {
  52. Container = "ts",
  53. VideoCodec = "h264",
  54. AudioCodec = "aac,ac3,eac3,mp3,mp2,pcm",
  55. Type = DlnaProfileType.Video
  56. },
  57. new DirectPlayProfile
  58. {
  59. Container = "asf",
  60. VideoCodec = "wmv2,wmv3,vc1",
  61. AudioCodec = "wmav2,wmapro,wmavoice",
  62. Type = DlnaProfileType.Video
  63. },
  64. new DirectPlayProfile
  65. {
  66. Container = "avi",
  67. VideoCodec = "mpeg4,msmpeg4,mjpeg",
  68. AudioCodec = "mp3,ac3,eac3,mp2,pcm",
  69. Type = DlnaProfileType.Video
  70. },
  71. new DirectPlayProfile
  72. {
  73. Container = "mp4",
  74. AudioCodec = "aac",
  75. Type = DlnaProfileType.Audio
  76. },
  77. new DirectPlayProfile
  78. {
  79. Container = "mp3",
  80. AudioCodec = "mp3",
  81. Type = DlnaProfileType.Audio
  82. },
  83. new DirectPlayProfile
  84. {
  85. Container = "jpeg",
  86. Type = DlnaProfileType.Photo
  87. }
  88. };
  89. CodecProfiles = new[]
  90. {
  91. new CodecProfile
  92. {
  93. Type = CodecType.Video,
  94. Conditions = new []
  95. {
  96. new ProfileCondition
  97. {
  98. Condition = ProfileConditionType.LessThanEqual,
  99. Property = ProfileConditionValue.VideoBitDepth,
  100. Value = "8",
  101. IsRequired = false
  102. }
  103. }
  104. },
  105. new CodecProfile
  106. {
  107. Type = CodecType.VideoAudio,
  108. Codec = "aac,eac3",
  109. Conditions = new []
  110. {
  111. new ProfileCondition
  112. {
  113. Condition = ProfileConditionType.LessThanEqual,
  114. Property = ProfileConditionValue.AudioChannels,
  115. Value = "8"
  116. }
  117. }
  118. },
  119. new CodecProfile
  120. {
  121. Type = CodecType.VideoAudio,
  122. Codec = "ac3",
  123. Conditions = new []
  124. {
  125. new ProfileCondition
  126. {
  127. Condition = ProfileConditionType.LessThanEqual,
  128. Property = ProfileConditionValue.AudioChannels,
  129. Value = "6"
  130. }
  131. }
  132. }
  133. };
  134. }
  135. }
  136. }