music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.35k stars 52 forks source link

Track progress isn't in sync when using Player Groups (Slimproto) #3063

Open Alundran opened 4 hours ago

Alundran commented 4 hours ago

What version of Music Assistant has the issue?

2.3.0b33

What version of the Home Assistant Integration have you got installed?

2024.10.0

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

Using the newest beta with the refactored player groups, when playing a song to a group that contains my Slimproto devices, the track progress isn't in sync. You need to pause and play the song for the track progress to correct itself. In some cases the track progress is way past the duration of the song, almost as if the counter continues even when music is paused / off.

How to reproduce

  1. Have a Player Group of Slimproto devices (I do not have any other devices types to try to see if this is also problematic there)
  2. Play a song
  3. Play the next track
  4. Observe the progress continues to count instead of resetting
  5. Pause the song, see the track progress corrects itself

https://github.com/user-attachments/assets/ac3641d1-ab3a-4308-9b73-469479785539

Music Providers

Spotify (don't use any others)

Player Providers

Player Group - Slimproto Devices (don't use any other types)

Full log output

music-assistant.log

Additional information

No response

What version of Home Assistant Core are your running

2024.10.3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

Alundran commented 4 hours ago

Was testing the theory that the track progress continues even if the song is paused and it seems possible. I had a song paused, waited a bit, pressed play and MA thinks the next track is playing but it's the same song that was paused (playing from the position it was paused at).

OzGav commented 1 hour ago

Is this the same as #2852