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

fix NextUp not working without clearing old video queue items #1951

Merged

Conversation

mueslimak3r
Copy link
Member

@mueslimak3r mueslimak3r commented Aug 10, 2022

Changes

  • sync video queue pos between playbackController and mediaManager
    set the video queue index in mediaManager via playbackController in next(), prev(), and itemCompleted()
  • delete removePreviousQueueItems()
    it was used to clear already-played items from playbackController before opening NextUp because there previously wasn't support for starting playback from a specific video queue index (added in Fix 'Play from Here' in video playlists #1939)
  • simplified itemComplete()

Issues

Notes

  • Managing the video queue and its position in both playbackController and videoManager and then syncing them is kinda lame. 😔

@nielsvanvelzen nielsvanvelzen added this to the v0.15.0 milestone Aug 10, 2022
@nielsvanvelzen nielsvanvelzen added the refactor Improvements to code realiability, readability and quality label Aug 10, 2022
Copy link
Member

@nielsvanvelzen nielsvanvelzen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look fine

@nielsvanvelzen nielsvanvelzen merged commit d7db889 into jellyfin:master Aug 10, 2022
@mueslimak3r mueslimak3r deleted the remove-vid-queue-clearing branch August 10, 2022 20:41
@@ -986,7 +986,9 @@ public void resumeAudio() {
}

public void setCurrentMediaPosition(int currentMediaPosition) {
this.mCurrentMediaPosition = currentMediaPosition;
if (!hasVideoQueueItems() || currentMediaPosition < 0 || currentMediaPosition > getCurrentVideoQueue().size())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the old and new photo viewers (app crashes when trying to view a photo)

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