OpenLiveStreamDto.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Dlna;
  4. using MediaBrowser.Model.MediaInfo;
  5. namespace Jellyfin.Api.Models.MediaInfoDtos
  6. {
  7. /// <summary>
  8. /// Open live stream dto.
  9. /// </summary>
  10. public class OpenLiveStreamDto
  11. {
  12. /// <summary>
  13. /// Gets or sets the open token.
  14. /// </summary>
  15. public string? OpenToken { get; set; }
  16. /// <summary>
  17. /// Gets or sets the user id.
  18. /// </summary>
  19. public Guid? UserId { get; set; }
  20. /// <summary>
  21. /// Gets or sets the play session id.
  22. /// </summary>
  23. public string? PlaySessionId { get; set; }
  24. /// <summary>
  25. /// Gets or sets the max streaming bitrate.
  26. /// </summary>
  27. public int? MaxStreamingBitrate { get; set; }
  28. /// <summary>
  29. /// Gets or sets the start time in ticks.
  30. /// </summary>
  31. public long? StartTimeTicks { get; set; }
  32. /// <summary>
  33. /// Gets or sets the audio stream index.
  34. /// </summary>
  35. public int? AudioStreamIndex { get; set; }
  36. /// <summary>
  37. /// Gets or sets the subtitle stream index.
  38. /// </summary>
  39. public int? SubtitleStreamIndex { get; set; }
  40. /// <summary>
  41. /// Gets or sets the max audio channels.
  42. /// </summary>
  43. public int? MaxAudioChannels { get; set; }
  44. /// <summary>
  45. /// Gets or sets the item id.
  46. /// </summary>
  47. public Guid? ItemId { get; set; }
  48. /// <summary>
  49. /// Gets or sets a value indicating whether to enable direct play.
  50. /// </summary>
  51. public bool? EnableDirectPlay { get; set; }
  52. /// <summary>
  53. /// Gets or sets a value indicating whether to enale direct stream.
  54. /// </summary>
  55. public bool? EnableDirectStream { get; set; }
  56. /// <summary>
  57. /// Gets or sets the device profile.
  58. /// </summary>
  59. public DeviceProfile? DeviceProfile { get; set; }
  60. /// <summary>
  61. /// Gets or sets the device play protocols.
  62. /// </summary>
  63. public IReadOnlyList<MediaProtocol> DirectPlayProtocols { get; set; } = Array.Empty<MediaProtocol>();
  64. }
  65. }