diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-09-06 13:51:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-06 13:51:07 +0200 |
| commit | 7d8efa35fa7f94d5e4ae5145cd8d370c890585ac (patch) | |
| tree | 119df99657f79f0d3b4437a6de6a1f155ccc8a4c /Emby.Server.Implementations | |
| parent | ba90b1215ba6a48428cbc76ba7fa2a94479e26b8 (diff) | |
| parent | 5e3905d41a1aad6825a1a9def66cc6c7c3c59917 (diff) | |
Merge pull request #5092 from OancaAndrei/syncplay-clear-queue
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/SyncPlay/Group.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/SyncPlay/Group.cs b/Emby.Server.Implementations/SyncPlay/Group.cs index 12efff261..bc20ddff8 100644 --- a/Emby.Server.Implementations/SyncPlay/Group.cs +++ b/Emby.Server.Implementations/SyncPlay/Group.cs @@ -537,6 +537,16 @@ namespace Emby.Server.Implementations.SyncPlay } /// <inheritdoc /> + public void ClearPlayQueue(bool clearPlayingItem) + { + PlayQueue.ClearPlaylist(clearPlayingItem); + if (clearPlayingItem) + { + RestartCurrentItem(); + } + } + + /// <inheritdoc /> public bool RemoveFromPlayQueue(IReadOnlyList<Guid> playlistItemIds) { var playingItemRemoved = PlayQueue.RemoveFromPlaylist(playlistItemIds); |
