diff --git a/.vs/WindowsFormsApplication2/v16/.suo b/.vs/WindowsFormsApplication2/v16/.suo index b291209..9608ef5 100644 Binary files a/.vs/WindowsFormsApplication2/v16/.suo and b/.vs/WindowsFormsApplication2/v16/.suo differ diff --git a/WindowsFormsApplication2/JellyfinAPI.cs b/WindowsFormsApplication2/JellyfinAPI.cs index 2504608..2509d5e 100644 --- a/WindowsFormsApplication2/JellyfinAPI.cs +++ b/WindowsFormsApplication2/JellyfinAPI.cs @@ -371,7 +371,9 @@ namespace JellyfinRPC } public class SessionInfo { + public PlayState PlayState { get; set; } public JArray AdditionalUsers { get; } + public Capabilities Capabilities { get; set; } public string RemoteEndPoint { get; } public JArray PlayableMediaTypes { get; } public string Id { get; } @@ -462,5 +464,44 @@ namespace JellyfinRPC public string PasswordResetProviderId { get; } public string SyncPlayAccess { get; } } + public class PlayState + { + public int PositionTicks { get; set; } + public bool CanSeek { get; } + public bool IsPaused { get; } + public bool IsMuted { get; set; } + public int VolumeLevel { get; set; } + public bool AudioStreamIndex { get; } + public bool SubtitleStreamIndex { get; } + public string MediaSourceId { get; } + public string PlayMethod { get; } + public string RepeatMode { get; } + public string PlaybackOrder { get; } + public string LiveStreamId { get; } + + } + public class Capabilities + { + public JArray PlayableMediaTypes { get; set; } + public JArray SupportedCommands { get; set; } + public bool SupportsMediaControl { get; set; } + public bool SupportsPersistentIdentifier { get; set; } + public DeviceProfile DeviceProfile { get; set; } + public string AppStoreUrl { get; set; } + public string IconUrl { get; set; } + } + public class DeviceProfile + { + public string Name { get; set; } + public string Id { get; set; } + public int MaxStreamingBitrate { get; set; } + public int MaxStaticBitrate { get; set; } + public int MusicStreamingTranscodingBitrate { get; set; } + public JArray DirectPlayProfiles { get; set; } + public JArray TranscodingProfiles { get; set; } + public JArray ContainerProfiles { get; set; } + public JArray CodecProfiles { get; set; } + public JArray SubtitleProfiles { get; set; } + } #endregion }