Foobar2000Profile.cs 2.0 KB

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