XboxOneProfile.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using MediaBrowser.Controller.Dlna;
  2. namespace MediaBrowser.Dlna.Profiles
  3. {
  4. public class XboxOneProfile : DefaultProfile
  5. {
  6. public XboxOneProfile()
  7. {
  8. Name = "Xbox One";
  9. ClientType = "DLNA";
  10. Identification = new DeviceIdentification
  11. {
  12. ModelName = "Xbox One",
  13. FriendlyName = "Xbox-SystemOS"
  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. Container = "ts",
  26. VideoCodec = "h264",
  27. AudioCodec = "aac",
  28. Type = DlnaProfileType.Video
  29. }
  30. };
  31. DirectPlayProfiles = new[]
  32. {
  33. new DirectPlayProfile
  34. {
  35. Container = "mp3",
  36. Type = DlnaProfileType.Audio
  37. },
  38. new DirectPlayProfile
  39. {
  40. Container = "avi",
  41. Type = DlnaProfileType.Video
  42. }
  43. };
  44. MediaProfiles = new[]
  45. {
  46. new MediaProfile
  47. {
  48. Container = "avi",
  49. MimeType = "video/x-msvideo",
  50. Type = DlnaProfileType.Video
  51. }
  52. };
  53. }
  54. }
  55. }