Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unset playing item once the playback queue ends #4221

Merged

Conversation

nielsvanvelzen
Copy link
Member

should've implemented this earlier

Changes
With this change the queue index will always reset to -1 (INDEX_NONE) once the last item in the queue ends instead of leaving the last queue item active. This solves various issues in the UI (like the screensaver) where it keeps showing the last item when nothing is playing

  • Allow INDEX_NONE in Queue.setIndex
  • Fix crash when getOrSupplyItem is invoked with a lower then 0 index (couldn't happen before this PR though)
  • Set queue index to INDEX_NONE once last queue item finishes

Issues

Fixes #4214
Part of #1057

With this change the queue index will always reset to -1 (INDEX_NONE) once the last item in the queue ends instead of leaving the last queue item active. This solves various issues in the UI (like the screensaver) where it keeps showing the last item when nothing is playing
@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Nov 16, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.18.0 milestone Nov 16, 2024
@nielsvanvelzen nielsvanvelzen merged commit 300346f into jellyfin:master Nov 16, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the playback-queue-reset-on-end branch December 24, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Music playback screensaver stays after playback ends
2 participants