SharpSmartTvProfile.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 SharpSmartTvProfile : DefaultProfile
  7. {
  8. public SharpSmartTvProfile()
  9. {
  10. Name = "Sharp Smart TV";
  11. RequiresPlainFolders = true;
  12. RequiresPlainVideoItems = true;
  13. Identification = new DeviceIdentification
  14. {
  15. Manufacturer = "Sharp",
  16. Headers = new[]
  17. {
  18. new HttpHeaderInfo
  19. {
  20. Name = "User-Agent",
  21. Value = "Sharp",
  22. Match = HeaderMatchType.Substring
  23. }
  24. }
  25. };
  26. TranscodingProfiles = new[]
  27. {
  28. new TranscodingProfile
  29. {
  30. Container = "mp3",
  31. AudioCodec = "mp3",
  32. Type = DlnaProfileType.Audio
  33. },
  34. new TranscodingProfile
  35. {
  36. Container = "ts",
  37. Type = DlnaProfileType.Video,
  38. AudioCodec = "ac3,aac,mp3,dts,dca",
  39. VideoCodec = "h264",
  40. EnableMpegtsM2TsMode = true
  41. },
  42. new TranscodingProfile
  43. {
  44. Container = "jpeg",
  45. Type = DlnaProfileType.Photo
  46. }
  47. };
  48. DirectPlayProfiles = new[]
  49. {
  50. new DirectPlayProfile
  51. {
  52. Container = "m4v,mkv,avi,mov,mp4",
  53. VideoCodec = "h264,mpeg4",
  54. AudioCodec = "aac,mp3,ac3,dts,dca",
  55. Type = DlnaProfileType.Video
  56. },
  57. new DirectPlayProfile
  58. {
  59. Container = "asf,wmv",
  60. Type = DlnaProfileType.Video
  61. },
  62. new DirectPlayProfile
  63. {
  64. Container = "mpg,mpeg",
  65. VideoCodec = "mpeg2video",
  66. AudioCodec = "mp3,aac",
  67. Type = DlnaProfileType.Video
  68. },
  69. new DirectPlayProfile
  70. {
  71. Container = "flv",
  72. VideoCodec = "h264",
  73. AudioCodec = "mp3,aac",
  74. Type = DlnaProfileType.Video
  75. },
  76. new DirectPlayProfile
  77. {
  78. Container = "mp3,wav",
  79. Type = DlnaProfileType.Audio
  80. }
  81. };
  82. SubtitleProfiles = new[]
  83. {
  84. new SubtitleProfile
  85. {
  86. Format = "srt",
  87. Method = SubtitleDeliveryMethod.Embed
  88. },
  89. new SubtitleProfile
  90. {
  91. Format = "srt",
  92. Method = SubtitleDeliveryMethod.External
  93. }
  94. };
  95. ResponseProfiles = new[]
  96. {
  97. new ResponseProfile
  98. {
  99. Container = "m4v",
  100. Type = DlnaProfileType.Video,
  101. MimeType = "video/mp4"
  102. }
  103. };
  104. }
  105. }
  106. }