Previous track button when shuffle is enabled
gsantner opened this issue · 3 comments
Describe the bug
When the random is enabled (control state highlighted), the previous track button does not work as expected.
It just jumps to the track one up in the list, but not to the track previously played.
To Reproduce
Steps to reproduce the behavior:
- Open audioplayer addon page
- Click random playback toggle to enable random playback
- Play a track
- Press next track button ~ 5 times
- Press previous track button
Expected behavior
That the track is played that actually was before the current one. Not the track that happens to be above in the listview.
Screenshots
See above.
Versions:
- Nextcloud: Nextcloud 20.0.10
- Audioplayer 3.1.0
Hi,
sorry for the late reply.
nice finding. I will check.
Hello,
the reasons is, that the shuffle only shuffles the next upcoming title by calculating a random index number.
I will change the procedure a little.
with a press on the shuffle button, the whole playlist will shuffle visually.
Then all standard coding can apply and everything will work
yeah, I thought it was implemented this way :D