StreamState.cs 2.2 KB

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