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

Previous Items appends the last played Item #97

Open
mihailsalari opened this issue Jan 4, 2020 · 0 comments
Open

Previous Items appends the last played Item #97

mihailsalari opened this issue Jan 4, 2020 · 0 comments

Comments

@mihailsalari
Copy link

mihailsalari commented Jan 4, 2020

Hello @jorgenhenrichsen ,
I have a table view with a list of categories. When I'm open any category, I have a list of songs.
I'm adding the list of songs to QueuedAudioPlayer like in 1 number. First time the previous and next are working correctly, but if I'm leaving the current category, going back and trying to open another one, the last played song is added to Previous Items from 0 and one of the current previous items is removed.

  1. try player.add(items: sources, playWhenReady: playWhenReady)
    try player.jumpToItem(atIndex: index)

  2. When I call 1 again, the previous items are appended from 0 the last played items and one of previous are removed

Can you help to fix, please?

Best Regards,
Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant