mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-17 11:43:44 +01:00
rework media versions to be based on original item id
This commit is contained in:
56
MediaBrowser.Model/Session/PlaybackReports.cs
Normal file
56
MediaBrowser.Model/Session/PlaybackReports.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
/// <summary>
|
||||
/// Class PlaybackStartInfo.
|
||||
/// </summary>
|
||||
public class PlaybackStartInfo
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string ItemId { get; set; }
|
||||
|
||||
public string MediaVersionId { get; set; }
|
||||
|
||||
public bool IsSeekable { get; set; }
|
||||
|
||||
public string[] QueueableMediaTypes { get; set; }
|
||||
|
||||
public PlaybackStartInfo()
|
||||
{
|
||||
QueueableMediaTypes = new string[] { };
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class PlaybackProgressInfo.
|
||||
/// </summary>
|
||||
public class PlaybackProgressInfo
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string ItemId { get; set; }
|
||||
|
||||
public string MediaVersionId { get; set; }
|
||||
|
||||
public long? PositionTicks { get; set; }
|
||||
|
||||
public bool IsPaused { get; set; }
|
||||
|
||||
public bool IsMuted { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class PlaybackStopInfo.
|
||||
/// </summary>
|
||||
public class PlaybackStopInfo
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string ItemId { get; set; }
|
||||
|
||||
public string MediaVersionId { get; set; }
|
||||
|
||||
public long? PositionTicks { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,10 @@ namespace MediaBrowser.Model.Session
|
||||
|
||||
public bool SupportsFullscreenToggle { get; set; }
|
||||
|
||||
public bool SupportsOsdToggle { get; set; }
|
||||
|
||||
public bool SupportsNavigationControl { get; set; }
|
||||
|
||||
public SessionCapabilities()
|
||||
{
|
||||
PlayableMediaTypes = new string[] {};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.Diagnostics;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
@@ -147,6 +147,18 @@ namespace MediaBrowser.Model.Session
|
||||
/// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
|
||||
public bool SupportsRemoteControl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports osd toggle].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports osd toggle]; otherwise, <c>false</c>.</value>
|
||||
public bool SupportsOsdToggle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [supports navigation commands].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports navigation commands]; otherwise, <c>false</c>.</value>
|
||||
public bool SupportsNavigationControl { get; set; }
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public SessionInfoDto()
|
||||
|
||||
Reference in New Issue
Block a user