mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-29 12:14:49 +03:00
update play media source feature
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
using MediaBrowser.Model.Services;
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
/// <summary>
|
||||
@@ -10,18 +11,21 @@ namespace MediaBrowser.Model.Session
|
||||
/// Gets or sets the item ids.
|
||||
/// </summary>
|
||||
/// <value>The item ids.</value>
|
||||
[ApiMember(Name = "ItemIds", Description = "The ids of the items to play, comma delimited", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST", AllowMultiple = true)]
|
||||
public string[] ItemIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start position ticks that the first item should be played at
|
||||
/// </summary>
|
||||
/// <value>The start position ticks.</value>
|
||||
[ApiMember(Name = "StartPositionTicks", Description = "The starting position of the first item.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
|
||||
public long? StartPositionTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the play command.
|
||||
/// </summary>
|
||||
/// <value>The play command.</value>
|
||||
[ApiMember(Name = "PlayCommand", Description = "The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
|
||||
public PlayCommand PlayCommand { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -29,5 +33,9 @@ namespace MediaBrowser.Model.Session
|
||||
/// </summary>
|
||||
/// <value>The controlling user identifier.</value>
|
||||
public string ControllingUserId { get; set; }
|
||||
|
||||
public int? SubtitleStreamIndex { get; set; }
|
||||
public int? AudioStreamIndex { get; set; }
|
||||
public string MediaSourceId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user