Add PlaybackSpeed to PlayQueueUpdates

This commit is contained in:
rzk3 2023-02-16 21:13:33 -05:00
parent 800ff53e97
commit 7c1ebc3ea2
2 changed files with 15 additions and 2 deletions

View File

@ -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; }
}
}

View File

@ -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
}
}