mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-18 20:24:20 +01:00
chromecast updates
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Session;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Querying;
|
||||
using MediaBrowser.Model.Session;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -21,13 +19,6 @@ namespace MediaBrowser.Controller.Dto
|
||||
/// <returns>UserDto.</returns>
|
||||
UserDto GetUserDto(User user);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the session info dto.
|
||||
/// </summary>
|
||||
/// <param name="session">The session.</param>
|
||||
/// <returns>SessionInfoDto.</returns>
|
||||
SessionInfoDto GetSessionInfoDto(SessionInfo session);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the dto id.
|
||||
/// </summary>
|
||||
|
||||
@@ -253,6 +253,7 @@
|
||||
<Compile Include="Session\PlaybackInfo.cs" />
|
||||
<Compile Include="Session\PlaybackProgressInfo.cs" />
|
||||
<Compile Include="Session\PlaybackStopInfo.cs" />
|
||||
<Compile Include="Session\SessionEventArgs.cs" />
|
||||
<Compile Include="Session\SessionInfo.cs" />
|
||||
<Compile Include="Sorting\IBaseItemComparer.cs" />
|
||||
<Compile Include="Sorting\IUserBaseItemComparer.cs" />
|
||||
|
||||
@@ -89,6 +89,14 @@ namespace MediaBrowser.Controller.Session
|
||||
/// <returns>Task.</returns>
|
||||
Task SendServerShutdownNotification(CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Sends the session ended notification.
|
||||
/// </summary>
|
||||
/// <param name="sessionInfo">The session information.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task SendSessionEndedNotification(SessionInfoDto sessionInfo, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Sends the server restart notification.
|
||||
/// </summary>
|
||||
|
||||
@@ -28,6 +28,16 @@ namespace MediaBrowser.Controller.Session
|
||||
/// </summary>
|
||||
event EventHandler<PlaybackStopEventArgs> PlaybackStopped;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [session started].
|
||||
/// </summary>
|
||||
event EventHandler<SessionEventArgs> SessionStarted;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [session ended].
|
||||
/// </summary>
|
||||
event EventHandler<SessionEventArgs> SessionEnded;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the sessions.
|
||||
/// </summary>
|
||||
@@ -83,6 +93,13 @@ namespace MediaBrowser.Controller.Session
|
||||
/// <returns>Task.</returns>
|
||||
Task ReportSessionEnded(Guid sessionId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the session info dto.
|
||||
/// </summary>
|
||||
/// <param name="session">The session.</param>
|
||||
/// <returns>SessionInfoDto.</returns>
|
||||
SessionInfoDto GetSessionInfoDto(SessionInfo session);
|
||||
|
||||
/// <summary>
|
||||
/// Sends the general command.
|
||||
/// </summary>
|
||||
|
||||
@@ -40,5 +40,17 @@ namespace MediaBrowser.Controller.Session
|
||||
/// </summary>
|
||||
/// <value>The media version identifier.</value>
|
||||
public string MediaSourceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the audio stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the audio stream.</value>
|
||||
public int? AudioStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the subtitle stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the subtitle stream.</value>
|
||||
public int? SubtitleStreamIndex { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,5 +40,23 @@ namespace MediaBrowser.Controller.Session
|
||||
/// </summary>
|
||||
/// <value>The media version identifier.</value>
|
||||
public string MediaSourceId { 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 audio stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the audio stream.</value>
|
||||
public int? AudioStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the subtitle stream.
|
||||
/// </summary>
|
||||
/// <value>The index of the subtitle stream.</value>
|
||||
public int? SubtitleStreamIndex { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
9
MediaBrowser.Controller/Session/SessionEventArgs.cs
Normal file
9
MediaBrowser.Controller/Session/SessionEventArgs.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Controller.Session
|
||||
{
|
||||
public class SessionEventArgs : EventArgs
|
||||
{
|
||||
public SessionInfo SessionInfo { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -126,7 +126,6 @@ namespace MediaBrowser.Controller.Session
|
||||
/// <value>The now playing media version identifier.</value>
|
||||
public string NowPlayingMediaSourceId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the now playing run time ticks.
|
||||
/// </summary>
|
||||
@@ -150,6 +149,16 @@ namespace MediaBrowser.Controller.Session
|
||||
/// <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, on a scale of 0-100
|
||||
/// </summary>
|
||||
/// <value>The volume level.</value>
|
||||
public int? VolumeLevel { get; set; }
|
||||
|
||||
public int? NowPlayingAudioStreamIndex { get; set; }
|
||||
|
||||
public int? NowPlayingSubtitleStreamIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the device id.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user