aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/StreamingDtos/StreamState.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2020-07-22 10:57:27 +0200
committerDavid <daullmer@gmail.com>2020-07-22 10:57:27 +0200
commiteae665a9c410540bdbf3880e340fa1a7fb19be92 (patch)
tree7a4a3f65899367ef715d81a8c148e9873d445509 /Jellyfin.Api/Models/StreamingDtos/StreamState.cs
parent07e56850beba99d3a5794a27280b96032880eb1e (diff)
Add properties to StreamState to fix some errors
Diffstat (limited to 'Jellyfin.Api/Models/StreamingDtos/StreamState.cs')
-rw-r--r--Jellyfin.Api/Models/StreamingDtos/StreamState.cs40
1 files changed, 35 insertions, 5 deletions
diff --git a/Jellyfin.Api/Models/StreamingDtos/StreamState.cs b/Jellyfin.Api/Models/StreamingDtos/StreamState.cs
index b962e0ac7..db7cc6a75 100644
--- a/Jellyfin.Api/Models/StreamingDtos/StreamState.cs
+++ b/Jellyfin.Api/Models/StreamingDtos/StreamState.cs
@@ -53,10 +53,10 @@ namespace Jellyfin.Api.Models.StreamingDtos
/// </summary>
public TranscodingThrottler? TranscodingThrottler { get; set; }
- /// <summary>
+ /*/// <summary>
/// Gets the video request.
/// </summary>
- public VideoStreamRequest VideoRequest => Request as VideoStreamRequest;
+ public VideoStreamRequest VideoRequest => Request as VideoStreamRequest;*/
/// <summary>
/// Gets or sets the direct stream provicer.
@@ -68,10 +68,10 @@ namespace Jellyfin.Api.Models.StreamingDtos
/// </summary>
public string? WaitForPath { get; set; }
- /// <summary>
+ /*/// <summary>
/// Gets a value indicating whether the request outputs video.
/// </summary>
- public bool IsOutputVideo => Request is VideoStreamRequest;
+ public bool IsOutputVideo => Request is VideoStreamRequest;*/
/// <summary>
/// Gets the segment length.
@@ -161,6 +161,36 @@ namespace Jellyfin.Api.Models.StreamingDtos
/// </summary>
public TranscodingJobDto? TranscodingJob { get; set; }
+ /// <summary>
+ /// Gets or sets the device id.
+ /// </summary>
+ public string? DeviceId { get; set; }
+
+ /// <summary>
+ /// Gets or sets the play session id.
+ /// </summary>
+ public string? PlaySessionId { get; set; }
+
+ /// <summary>
+ /// Gets or sets the live stream id.
+ /// </summary>
+ public string? LiveStreamId { get; set; }
+
+ /// <summary>
+ /// Gets or sets the video coded.
+ /// </summary>
+ public string? VideoCodec { get; set; }
+
+ /// <summary>
+ /// Gets or sets the audio codec.
+ /// </summary>
+ public string? AudioCodec { get; set; }
+
+ /// <summary>
+ /// Gets or sets the subtitle codec.
+ /// </summary>
+ public string? SubtitleCodec { get; set; }
+
/// <inheritdoc />
public void Dispose()
{
@@ -189,7 +219,7 @@ namespace Jellyfin.Api.Models.StreamingDtos
{
// REVIEW: Is this the right place for this?
if (MediaSource.RequiresClosing
- && string.IsNullOrWhiteSpace(Request.LiveStreamId)
+ && string.IsNullOrWhiteSpace(LiveStreamId)
&& !string.IsNullOrWhiteSpace(MediaSource.LiveStreamId))
{
_mediaSourceManager.CloseLiveStream(MediaSource.LiveStreamId).GetAwaiter().GetResult();