VlcProfile.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System.Xml.Serialization;
  2. using MediaBrowser.Model.Dlna;
  3. namespace MediaBrowser.Dlna.Profiles
  4. {
  5. [XmlRoot("Profile")]
  6. public class VlcProfile : DefaultProfile
  7. {
  8. public VlcProfile()
  9. {
  10. Name = "Vlc";
  11. TimelineOffsetSeconds = 5;
  12. Identification = new DeviceIdentification
  13. {
  14. ModelName = "Vlc",
  15. Headers = new[]
  16. {
  17. new HttpHeaderInfo {Name = "User-Agent", Value = "vlc", Match = HeaderMatchType.Substring}
  18. }
  19. };
  20. TranscodingProfiles = new[]
  21. {
  22. new TranscodingProfile
  23. {
  24. Container = "mp3",
  25. Type = DlnaProfileType.Audio,
  26. AudioCodec = "mp3"
  27. },
  28. new TranscodingProfile
  29. {
  30. Container = "ts",
  31. Type = DlnaProfileType.Video,
  32. VideoCodec = "h264",
  33. AudioCodec = "aac"
  34. },
  35. new TranscodingProfile
  36. {
  37. Container = "jpeg",
  38. Type = DlnaProfileType.Photo
  39. }
  40. };
  41. DirectPlayProfiles = new[]
  42. {
  43. new DirectPlayProfile
  44. {
  45. Container = "avi,mpeg,mkv,ts,mp4,mov,m4v,asf,webm,ogg,ogv,iso",
  46. Type = DlnaProfileType.Video
  47. },
  48. new DirectPlayProfile
  49. {
  50. Container = "mp3,flac,asf,off,oga,aac",
  51. Type = DlnaProfileType.Audio
  52. },
  53. new DirectPlayProfile
  54. {
  55. Type = DlnaProfileType.Photo,
  56. Container = "jpeg,png,gif,bmp,tiff"
  57. }
  58. };
  59. ResponseProfiles = new ResponseProfile[] { };
  60. ContainerProfiles = new ContainerProfile[] { };
  61. CodecProfiles = new CodecProfile[] { };
  62. }
  63. }
  64. }