mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 13:10:28 +01:00
add new playback checkin endpoints
This commit is contained in:
@@ -94,22 +94,10 @@ namespace MediaBrowser.Model.Session
|
||||
public string NowViewingContext { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the now viewing item.
|
||||
/// Gets or sets the now viewing item.
|
||||
/// </summary>
|
||||
/// <value>The type of the now viewing item.</value>
|
||||
public string NowViewingItemType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the now viewing item identifier.
|
||||
/// </summary>
|
||||
/// <value>The now viewing item identifier.</value>
|
||||
public string NowViewingItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the now viewing item.
|
||||
/// </summary>
|
||||
/// <value>The name of the now viewing item.</value>
|
||||
public string NowViewingItemName { get; set; }
|
||||
/// <value>The now viewing item.</value>
|
||||
public BaseItemInfo NowViewingItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the device.
|
||||
@@ -117,24 +105,6 @@ namespace MediaBrowser.Model.Session
|
||||
/// <value>The name of the device.</value>
|
||||
public string DeviceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the volume level.
|
||||
/// </summary>
|
||||
/// <value>The volume level.</value>
|
||||
public int? VolumeLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the now playing audio stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the now playing audio stream.</value>
|
||||
public int? NowPlayingAudioStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the now playing subtitle stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the now playing subtitle stream.</value>
|
||||
public int? NowPlayingSubtitleStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is paused.
|
||||
/// </summary>
|
||||
@@ -170,7 +140,9 @@ namespace MediaBrowser.Model.Session
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
|
||||
public bool SupportsRemoteControl { get; set; }
|
||||
|
||||
|
||||
public PlayerStateInfo PlayState { get; set; }
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public SessionInfoDto()
|
||||
@@ -211,4 +183,55 @@ namespace MediaBrowser.Model.Session
|
||||
SupportedCommands = new List<string>();
|
||||
}
|
||||
}
|
||||
|
||||
public class PlayerStateInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the now playing position ticks.
|
||||
/// </summary>
|
||||
/// <value>The now playing position ticks.</value>
|
||||
public long? PositionTicks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance can seek.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value>
|
||||
public bool CanSeek { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is paused.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
|
||||
public bool IsPaused { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is muted.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value>
|
||||
public bool IsMuted { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the volume level.
|
||||
/// </summary>
|
||||
/// <value>The volume level.</value>
|
||||
public int? VolumeLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the now playing audio stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the now playing audio stream.</value>
|
||||
public int? AudioStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the now playing subtitle stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the now playing subtitle stream.</value>
|
||||
public int? SubtitleStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the now playing media version identifier.
|
||||
/// </summary>
|
||||
/// <value>The now playing media version identifier.</value>
|
||||
public string MediaSourceId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user