mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-02 23:06:31 +01:00
add missing PlaySessionId
This commit is contained in:
@@ -69,7 +69,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
public SubtitleDeliveryMethod SubtitleDeliveryMethod { get; set; }
|
||||
public string SubtitleFormat { get; set; }
|
||||
|
||||
public PlaybackInfoResponse PlaybackInfo { get; set; }
|
||||
public string PlaySessionId { get; set; }
|
||||
|
||||
public string MediaSourceId
|
||||
{
|
||||
@@ -207,8 +207,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
list.Add(new NameValuePair("Profile", item.VideoProfile ?? string.Empty));
|
||||
list.Add(new NameValuePair("Cabac", item.Cabac.HasValue ? item.Cabac.Value.ToString() : string.Empty));
|
||||
|
||||
string playSessionId = item.PlaybackInfo == null ? null : item.PlaybackInfo.PlaySessionId;
|
||||
list.Add(new NameValuePair("PlaySessionId", playSessionId ?? string.Empty));
|
||||
list.Add(new NameValuePair("PlaySessionId", item.PlaySessionId ?? string.Empty));
|
||||
list.Add(new NameValuePair("api_key", accessToken ?? string.Empty));
|
||||
|
||||
string liveStreamId = item.MediaSource == null ? null : item.MediaSource.LiveStreamId;
|
||||
@@ -217,6 +216,11 @@ namespace MediaBrowser.Model.Dlna
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<SubtitleStreamInfo> GetExternalSubtitles(bool includeSelectedTrackOnly, string baseUrl, string accessToken)
|
||||
{
|
||||
return GetExternalSubtitles(includeSelectedTrackOnly, false, baseUrl, accessToken);
|
||||
}
|
||||
|
||||
public List<SubtitleStreamInfo> GetExternalSubtitles(bool includeSelectedTrackOnly, bool enableAllProfiles, string baseUrl, string accessToken)
|
||||
{
|
||||
List<SubtitleStreamInfo> list = GetSubtitleProfiles(includeSelectedTrackOnly, enableAllProfiles, baseUrl, accessToken);
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace MediaBrowser.Model.MediaInfo
|
||||
{
|
||||
public string OpenToken { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public string PlaySessionId { get; set; }
|
||||
public int? MaxStreamingBitrate { get; set; }
|
||||
public long? StartTimeTicks { get; set; }
|
||||
public int? AudioStreamIndex { get; set; }
|
||||
@@ -15,7 +16,7 @@ namespace MediaBrowser.Model.MediaInfo
|
||||
|
||||
public LiveStreamRequest()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public LiveStreamRequest(AudioOptions options)
|
||||
|
||||
@@ -83,5 +83,10 @@ namespace MediaBrowser.Model.Session
|
||||
/// </summary>
|
||||
/// <value>The live stream identifier.</value>
|
||||
public string LiveStreamId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the play session identifier.
|
||||
/// </summary>
|
||||
/// <value>The play session identifier.</value>
|
||||
public string PlaySessionId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -41,5 +41,10 @@ namespace MediaBrowser.Model.Session
|
||||
/// </summary>
|
||||
/// <value>The live stream identifier.</value>
|
||||
public string LiveStreamId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the play session identifier.
|
||||
/// </summary>
|
||||
/// <value>The play session identifier.</value>
|
||||
public string PlaySessionId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user