feishin icon indicating copy to clipboard operation
feishin copied to clipboard

Toggling shuffle restarts playback, shows incorrect track/duration

Open swishkin opened this issue 11 months ago • 4 comments

Expected Behavior

Toggling shuffle while playing from the middle of an album/playlist should reorder the current play queue, not interrupting the current song's playback.

Current Behavior

Feishin begins playing the first song in the playlist/album when you toggle shuffle on, but still shows the previous (mid-album) song title, duration, etc. Toggling shuffle on again returns to the previous (mid-album) song.

Steps to Reproduce

  1. Play a song from the middle of an album or playlist.

  2. Toggle shuffle.

  3. Feishin will switch playback to the first song in the playlist/album, then back to the mid-playlist/album song if toggled again.

Context

Switching between shuffled and ordered playback is disrupted.

Your Environment

  • Application version (e.g. v0.1.0) : Feishin 0.6.0
  • Operating System and version (e.g. Windows 10) : Artix Linux 6.7.9
  • Server and version (e.g. Navidrome v0.48.0) : Navidrome 0.51.1 (6d253225)
  • Node version (if developing locally) : N/A

swishkin avatar Mar 13 '24 03:03 swishkin

I am not able to reproduce this at all. Are you saying that the shuffle button in the center changes the currently playing track? What player are you using: web or MPV?

kgarner7 avatar Mar 31 '24 00:03 kgarner7

Ok, so I'm not encountering this anymore; either 0.6.1 has resolved this issue or I didn't accurately reproduce the situation it occurred in.

I was using the Linux desktop client, installed from the AUR. I might try downgrading and testing 0.6.0 just to see if I can reproduce it there.

swishkin avatar Mar 31 '24 01:03 swishkin

Checking in here, were you able to reproduce this with an older version? And have you seen it at all in 0.6.1 (or the web version)?

kgarner7 avatar Apr 12 '24 18:04 kgarner7

I have this problem, but only if I manually select a track that is not the first track. And it only does it for the first track that is manually selected. If I skip to the next song, I don't have the bug anymore. I'm on 0.6.1 of the docker version.

Amatsu-Kami avatar May 02 '24 13:05 Amatsu-Kami

Checking in again; I am unable to reproduce this using 0.7.3 web. Is this issue still present?

kgarner7 avatar Aug 20 '24 04:08 kgarner7

yes, steps to reproduce: 1: Click on shuffle image 2: Go in an album and manually select a track that isn't the first track. 3: Click on shuffle again to remove the shuffle, it will still be on the same song, but the audio will be the first song of the album 4: If you click on shuffle again, the audio will go back to the song you manually selected.

If you skip the song you manually selected, the bug is not present.

I'm using firefox, not sure if that matters.

Amatsu-Kami avatar Aug 20 '24 14:08 Amatsu-Kami

Resolved by https://github.com/jeffvli/feishin/commit/a537642990ccce2dcc7604ad56507ea66425c1bf

kgarner7 avatar Aug 21 '24 02:08 kgarner7