anandnet / Harmony-Music

A cross platform App for streaming Music
GNU General Public License v3.0
1.04k stars 81 forks source link

Song displayed is not always song playing #283

Open jacobot1 opened 2 months ago

jacobot1 commented 2 months ago

Describe the bug Sometimes when I open the app, the song displayed as playing is the song before the one that is currently playing in the queue. For example, King For A Day by Pierce the Veil is playing, but the app displays Diary of Jane by Breaking Benjamin, which came right before it. The progress bar even moves on Diary of Jane while King For A Day is playing. The bug seems to have no rhyme or reason to it, however. I can't conjure an exact formula for reproducing it.

To Reproduce Steps to reproduce the behavior:

  1. Put several songs in the queue.
  2. Listen for a while.
  3. Come back to the app.
  4. Hear the current song playing but see the previous song displayed.

Expected behavior The current song is displayed as playing.

Screenshots None

Smartphone (please complete the following information):

Additional context None

anandnet commented 2 months ago

If you are using samsung, you could try enabling ignore battery optimization from settings, this will probably fix the issue. Samsung always shows unexpected behavior.

notsarv commented 1 month ago

noticed the same issue on windows 10

anandnet commented 1 month ago

I am not able reproduce it, However made some changes that would prevent it.

anandnet commented 1 month ago

Please try new version, lemme know if this issue is still there

jacobot1 commented 1 month ago

I have the new version and just saw the bug crop up again. The song in the first pic is the one that the app says is playing; the one highlighted yellow in the second pic is the one I'm hearing.

Screenshot_20241015-164022.jpg

Screenshot_20241015_164112.jpg

anandnet commented 1 month ago

Please enable "ignore battery optimization" from settings if you are using samsung.