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

Rewrite usages of QueueEntry in UI #4110

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

nielsvanvelzen
Copy link
Member

Couldn't really think of a better title because this includes a variety of changes. This solves the stuttering mentioned in #4107 and improves performance.

Changes

  • Replace rememberMediaItem (legacy media manager based) with rememberQueueEntry (rewrite playback manager based)
  • Replace MediaManager usages with PlaybackManager in compose based UI
  • Update screensaver "NowPlaying" content to only animate a screen change when the queue entry changes - lyrics can lazily load inside of the screen
  • Add new rememberPlayerProgress composable that uses an animation to infer the playback progress, this replaces the timers in various composables and should make progress bars a lot smoother for short tracks and long progress bars

Issues

@nielsvanvelzen nielsvanvelzen added the refactor Improvements to code realiability, readability and quality label Oct 27, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.18.0 milestone Oct 27, 2024
@nielsvanvelzen nielsvanvelzen merged commit 67d470f into jellyfin:master Oct 28, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the ui-playback-manager branch October 28, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improvements to code realiability, readability and quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants