-
-
Notifications
You must be signed in to change notification settings - Fork 52
Restore last played #814
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
Restore last played #814
Conversation
Co-authored-by: Danielle Foré <[email protected]>
Co-authored-by: Danielle Foré <[email protected]>
danirabbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty clean to me! Just a couple small comments and I'll build and test and we can get this merged. Nice work!
danirabbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great and works as expected. Nice job! 🚀
fix #792
approach: Just like restoring Queue, restoring last played is playback's problem
We remember the URI of last played track. If it still exists, we search for it in restored queue, retrieve the object and slam it in currently playing
Next and Previous go from the restored "last played". I thought i had to update playback_position but it does not seem needed.
I had issues with the liststore to retrieve position, so i reused the code for searching. This could be improved upon.
NowPlayingView caused issues. The binds for labels and image were very unreliable, so this has been changed to simply setting the variables on signal.