DefaultProfile.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using MediaBrowser.Controller.Dlna;
  2. namespace MediaBrowser.Dlna.Profiles
  3. {
  4. public class DefaultProfile : DeviceProfile
  5. {
  6. public DefaultProfile()
  7. {
  8. TranscodingProfiles = new[]
  9. {
  10. new TranscodingProfile
  11. {
  12. Container = "mp3",
  13. AudioCodec = "mp3",
  14. Type = DlnaProfileType.Audio
  15. },
  16. new TranscodingProfile
  17. {
  18. Container = "ts",
  19. Type = DlnaProfileType.Video,
  20. AudioCodec = "aac",
  21. VideoCodec = "h264",
  22. Settings = new []
  23. {
  24. new TranscodingSetting {Name = TranscodingSettingType.VideoLevel, Value = "3"},
  25. new TranscodingSetting {Name = TranscodingSettingType.VideoProfile, Value = "baseline"}
  26. }
  27. }
  28. };
  29. DirectPlayProfiles = new[]
  30. {
  31. new DirectPlayProfile
  32. {
  33. Container = "mp3,wma",
  34. Type = DlnaProfileType.Audio
  35. },
  36. new DirectPlayProfile
  37. {
  38. Container = "avi,mp4",
  39. Type = DlnaProfileType.Video
  40. }
  41. };
  42. }
  43. }
  44. }