ChannelMediaInfo.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using MediaBrowser.Model.MediaInfo;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Controller.Channels
  5. {
  6. public class ChannelMediaInfo
  7. {
  8. public string Path { get; set; }
  9. public Dictionary<string, string> RequiredHttpHeaders { get; set; }
  10. public string Container { get; set; }
  11. public string AudioCodec { get; set; }
  12. public string VideoCodec { get; set; }
  13. public int? AudioBitrate { get; set; }
  14. public int? VideoBitrate { get; set; }
  15. public int? Width { get; set; }
  16. public int? Height { get; set; }
  17. public int? AudioChannels { get; set; }
  18. public int? AudioSampleRate { get; set; }
  19. public string VideoProfile { get; set; }
  20. public float? VideoLevel { get; set; }
  21. public float? Framerate { get; set; }
  22. public bool? IsAnamorphic { get; set; }
  23. public MediaProtocol Protocol { get; set; }
  24. public long? RunTimeTicks { get; set; }
  25. public ChannelMediaInfo()
  26. {
  27. RequiredHttpHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  28. // This is most common
  29. Protocol = MediaProtocol.Http;
  30. }
  31. }
  32. }