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.21k stars 44 forks source link

Progress Bar restarts at 0:00 after 2 seconds #2396

Closed mzurhorst closed 6 days ago

mzurhorst commented 1 month ago

What version of Music Assistant has the issue?

2.1.0b1

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

2024.5.5

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

The problem

Previously reported at: https://github.com/orgs/music-assistant/discussions/2390

For me, the progress bar is in a loop and progresses only for the first 2 seconds before it resets back to 00:00 again. grafik

As far as I can observe, the album is still played, song after song, but Music Assistant does not display the next title, nor does it display all titles played.

The player in use is a "Home Assistant MediaPlayers" player. The device is a Linkplay-based player (using the HACS custom integration). Within Home Assistant, the progress bar behaves as expected.

How to reproduce

n/a

Music Providers

Plex Media Server Library

Player Providers

Home Assistant MediaPlayers

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.5.5

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Alternative

mzurhorst commented 1 month ago

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

OzGav commented 3 weeks ago

Is QUEUE FLOW MODE enabled in the settings?

mzurhorst commented 3 weeks ago

Is QUEUE FLOW MODE enabled in the settings? Yes, it is.

I now did deactivate this, but it does not make a difference. (I only changed the settings and saved them; would there be a restart required to take affect?)

OzGav commented 3 weeks ago

No leave it on as it should be better that way. I would just draw your attention to this in the docs:

This player provider relies on the upstream HA integrations which have not necessarily been written or optimised for music playback. Therefore, if there is any way to use a MA provider you need to do so. Problems with HA providers will be addressed as resources allow.

There isn't currently a Linkplay native provider although it is on the to-do list. If the player supports any other protocol that MA has support for (eg. DLNA) then switch to that.

Edit: Looking at your report this might be simply that the HA integration is not reporting the track position correctly as you say playback is ok

mzurhorst commented 3 weeks ago

Thank you, @OzGav.

marcelveldt commented 2 weeks ago

Like already explained by OzGav, its always preferred to use one of the native Music Assistant providers, which are optimized for the best user experience and playback quality. Only use the HA MediaPlayer as last resort when there is no "native" option available. So for LinkPlay based players, use the DLNA and/or Airplay provider.

That said, I found some bugs yesterday in the HA Mediaplayer provider actually so its worth trying if this issue is fixed in the next update (2.0.7)

OzGav commented 2 weeks ago

@mzurhorst Please advise if this is still a problem in 2.0.7

mzurhorst commented 2 weeks ago

Hi @OzGav, am I supposed to install anything manually? My HA updated to 2.1.0.b6 yesterday, but does not offer anything else.

How would I leave the beta track?

OzGav commented 2 weeks ago

The beta will have the update as well. Is this still an issue?

mzurhorst commented 2 weeks ago

Well, something changed. The numbers are gone, see below. But would say, this was introduced with 2.1.0.b5 already. Not sure.

I still see the bar progressing at in tiny steps, and it is reset afterwards.

grafik

OzGav commented 2 weeks ago

So if the bar is now increasing would you agree that this issue is fixed?

mzurhorst commented 2 weeks ago

No, it is not. As I said, the progress bar makes a little progress, and resets. (=goes back).

I have captured a .gif. Please see attached. Here, you also see how this behave in the middle of a track.
I can click randomly onto the progress bar, and the music jumps to this position. But it is also the same, when I just select a new song.

2024-06-17-16-44-27

So, the only noticable difference from the past days is that the numbers are not displayed anymore.

marcelveldt commented 2 weeks ago

This is clearly an issue where the player is not reporting progress to HA. Unless that is fixed, you will not have great results with this player in MA. I suggest you to use the Airplay or DLNA provider in MA with linkplay based players.

OzGav commented 2 weeks ago

@mzurhorst Are you able to use a native provider?

mzurhorst commented 2 weeks ago

I will have to look into this in a calm minute. For the moment, I have raised this topic to the developers of the Linkplay integration. Maybe those have an idea to fix this on their side.

OzGav commented 6 days ago

Closing due upstream issue. FYI native linkplay provider support is on the backlog. ETA Unknown.