Rello/audioplayer

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.

screenrecord2

To Reproduce
Steps to reproduce the behavior:

  1. Open audioplayer addon page
  2. Click random playback toggle to enable random playback
  3. Play a track
  4. Press next track button ~ 5 times
  5. 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
Rello commented

Hi,
sorry for the late reply.
nice finding. I will check.

Rello commented

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