OpenLiveStreamDto.cs 2.0 KB

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