mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
add more info to playback events
This commit is contained in:
@@ -11,5 +11,15 @@ namespace MediaBrowser.Controller.Library
|
||||
public User User { get; set; }
|
||||
public long? PlaybackPositionTicks { get; set; }
|
||||
public BaseItem Item { get; set; }
|
||||
public UserItemData UserData { get; set; }
|
||||
}
|
||||
|
||||
public class PlaybackStopEventArgs : PlaybackProgressEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [played to completion].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [played to completion]; otherwise, <c>false</c>.</value>
|
||||
public bool PlayedToCompletion { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace MediaBrowser.Controller.Session
|
||||
/// <summary>
|
||||
/// Occurs when [playback stopped].
|
||||
/// </summary>
|
||||
event EventHandler<PlaybackProgressEventArgs> PlaybackStopped;
|
||||
event EventHandler<PlaybackStopEventArgs> PlaybackStopped;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the sessions.
|
||||
|
||||
Reference in New Issue
Block a user