StreamState.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using MediaBrowser.Model.Entities;
  2. using MediaBrowser.Model.IO;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Threading;
  6. namespace MediaBrowser.Api.Playback
  7. {
  8. public class StreamState
  9. {
  10. public string RequestedUrl { get; set; }
  11. public StreamRequest Request { get; set; }
  12. public VideoStreamRequest VideoRequest
  13. {
  14. get { return Request as VideoStreamRequest; }
  15. }
  16. /// <summary>
  17. /// Gets or sets the log file stream.
  18. /// </summary>
  19. /// <value>The log file stream.</value>
  20. public Stream LogFileStream { get; set; }
  21. public MediaStream AudioStream { get; set; }
  22. public MediaStream VideoStream { get; set; }
  23. public MediaStream SubtitleStream { get; set; }
  24. /// <summary>
  25. /// Gets or sets the iso mount.
  26. /// </summary>
  27. /// <value>The iso mount.</value>
  28. public IIsoMount IsoMount { get; set; }
  29. public string MediaPath { get; set; }
  30. public bool IsRemote { get; set; }
  31. public bool IsInputVideo { get; set; }
  32. public VideoType VideoType { get; set; }
  33. public IsoType? IsoType { get; set; }
  34. public List<string> PlayableStreamFileNames { get; set; }
  35. public bool HasMediaStreams { get; set; }
  36. public bool SendInputOverStandardInput { get; set; }
  37. public CancellationTokenSource StandardInputCancellationTokenSource { get; set; }
  38. public string LiveTvStreamId { get; set; }
  39. public int SegmentLength = 10;
  40. public int HlsListSize;
  41. public long? RunTimeTicks;
  42. public string AudioSync = "1";
  43. public string VideoSync = "vfr";
  44. public bool DeInterlace { get; set; }
  45. public bool ReadInputAtNativeFramerate { get; set; }
  46. public string InputFormat { get; set; }
  47. public string InputVideoCodec { get; set; }
  48. public string InputAudioCodec { get; set; }
  49. }
  50. }