diff options
| author | Stéphane Senart <stephane.senart@gmail.com> | 2021-03-30 22:18:32 +0200 |
|---|---|---|
| committer | Stéphane Senart <stephane.senart@gmail.com> | 2021-03-30 22:18:32 +0200 |
| commit | 3164781ce09200547999762ca618d0b67c3cc46f (patch) | |
| tree | 331f81c30a7e176bfed6ae10cb2a6ba6e1539754 | |
| parent | ec113816aa9d9f973665501c869cab47a13e6125 (diff) | |
[5644] [DLNA] [Music] Next track command from any DLNA device does not do anything.
| -rw-r--r-- | Emby.Dlna/PlayTo/PlayToController.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Dlna/PlayTo/PlayToController.cs b/Emby.Dlna/PlayTo/PlayToController.cs index e0c752c19..41723bc6c 100644 --- a/Emby.Dlna/PlayTo/PlayToController.cs +++ b/Emby.Dlna/PlayTo/PlayToController.cs @@ -175,6 +175,11 @@ namespace Emby.Dlna.PlayTo // Send a message to the DLNA device to notify what is the next track in the playlist. var currentItemIndex = _playlist.FindIndex(item => item.StreamInfo.ItemId == streamInfo.ItemId); + if (currentItemIndex >= 0) + { + _currentPlaylistIndex = currentItemIndex; + } + await SendNextTrackMessage(currentItemIndex, CancellationToken.None); } catch (Exception ex) |
