mirror of https://github.com/jellyfin/jellyfin.git
Add PlaybackSpeed to PlayQueueUpdates
This commit is contained in:
parent
800ff53e97
commit
7c1ebc3ea2
|
@ -19,7 +19,8 @@ namespace MediaBrowser.Model.SyncPlay
|
|||
/// <param name="isPlaying">The playing item status.</param>
|
||||
/// <param name="shuffleMode">The shuffle mode.</param>
|
||||
/// <param name="repeatMode">The repeat mode.</param>
|
||||
public PlayQueueUpdate(PlayQueueUpdateReason reason, DateTime lastUpdate, IReadOnlyList<QueueItem> playlist, int playingItemIndex, long startPositionTicks, bool isPlaying, GroupShuffleMode shuffleMode, GroupRepeatMode repeatMode)
|
||||
/// <param name="playbackSpeed">The playback speed.</param>
|
||||
public PlayQueueUpdate(PlayQueueUpdateReason reason, DateTime lastUpdate, IReadOnlyList<QueueItem> playlist, int playingItemIndex, long startPositionTicks, bool isPlaying, GroupShuffleMode shuffleMode, GroupRepeatMode repeatMode, double playbackSpeed)
|
||||
{
|
||||
Reason = reason;
|
||||
LastUpdate = lastUpdate;
|
||||
|
@ -29,6 +30,7 @@ namespace MediaBrowser.Model.SyncPlay
|
|||
IsPlaying = isPlaying;
|
||||
ShuffleMode = shuffleMode;
|
||||
RepeatMode = repeatMode;
|
||||
PlaybackSpeed = playbackSpeed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -78,5 +80,11 @@ namespace MediaBrowser.Model.SyncPlay
|
|||
/// </summary>
|
||||
/// <value>The repeat mode.</value>
|
||||
public GroupRepeatMode RepeatMode { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the PlaybackSpeed
|
||||
/// </summary>
|
||||
/// <value>The playback speed.</value>
|
||||
public double? PlaybackSpeed { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,6 +53,11 @@ namespace MediaBrowser.Model.SyncPlay
|
|||
/// <summary>
|
||||
/// A user is changing shuffle mode.
|
||||
/// </summary>
|
||||
ShuffleMode = 9
|
||||
ShuffleMode = 9,
|
||||
|
||||
/// <summary>
|
||||
/// A user has changed the playback speed.
|
||||
/// </summary>
|
||||
PlaybackSpeedChange = 10
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue