Clear playlist in SyncPlay group

This commit is contained in:
Ionut Andrei Oanca
2021-01-24 01:05:17 +01:00
parent 828b0be254
commit 68969c9530
6 changed files with 58 additions and 4 deletions

View File

@@ -534,6 +534,16 @@ namespace Emby.Server.Implementations.SyncPlay
return itemFound;
}
/// <inheritdoc />
public void ClearPlayQueue(bool clearPlayingItem)
{
PlayQueue.ClearPlaylist(clearPlayingItem);
if (clearPlayingItem)
{
RestartCurrentItem();
}
}
/// <inheritdoc />
public bool RemoveFromPlayQueue(IReadOnlyList<Guid> playlistItemIds)
{