MediaMonkeyProfile.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using MediaBrowser.Model.Dlna;
  2. using System.Xml.Serialization;
  3. namespace MediaBrowser.Dlna.Profiles
  4. {
  5. [XmlRoot("Profile")]
  6. public class MediaMonkeyProfile : DefaultProfile
  7. {
  8. public MediaMonkeyProfile()
  9. {
  10. Name = "MediaMonkey";
  11. SupportedMediaTypes = "Audio";
  12. Identification = new DeviceIdentification
  13. {
  14. FriendlyName = @"MediaMonkey",
  15. Headers = new[]
  16. {
  17. new HttpHeaderInfo
  18. {
  19. Name = "User-Agent",
  20. Value = "MediaMonkey",
  21. Match = HeaderMatchType.Substring
  22. }
  23. }
  24. };
  25. DirectPlayProfiles = new[]
  26. {
  27. new DirectPlayProfile
  28. {
  29. Container = "mp3",
  30. AudioCodec = "mp2,mp3",
  31. Type = DlnaProfileType.Audio
  32. },
  33. new DirectPlayProfile
  34. {
  35. Container = "mp4",
  36. AudioCodec = "mp4",
  37. Type = DlnaProfileType.Audio
  38. },
  39. new DirectPlayProfile
  40. {
  41. Container = "aac,wav",
  42. Type = DlnaProfileType.Audio
  43. },
  44. new DirectPlayProfile
  45. {
  46. Container = "flac",
  47. AudioCodec = "flac",
  48. Type = DlnaProfileType.Audio
  49. },
  50. new DirectPlayProfile
  51. {
  52. Container = "asf",
  53. AudioCodec = "wmav2,wmapro,wmavoice",
  54. Type = DlnaProfileType.Audio
  55. },
  56. new DirectPlayProfile
  57. {
  58. Container = "ogg",
  59. AudioCodec = "vorbis",
  60. Type = DlnaProfileType.Audio
  61. }
  62. };
  63. ResponseProfiles = new ResponseProfile[] { };
  64. }
  65. }
  66. }