Too many notifications during song playing

Issue description:

I use a notification reader (Voice Notify) to tell me the song artist and title while I’m using a bluetooth speaker or headphones while doing things away from my phone. The artist and title are correctly spoken when the song starts, but repeat several times during the song, which is very annoying. In looking at Voice Notify’s log, it’s getting new notifications many times during the song (like up six times for a four minute song). I’ve gone into Notification settings for Symfonium and deselected “Background tasks”, but that didn’t change anything. Why does Symfonium need to keep sending the same notification so many times and what can I do to have it sent just once at the beginning of a song? This setup works as desired for Tidal and other player apps.

Logs:

Upload description: DrJako

Additional information:

 

 

Reproduction steps:

 
I just add an album to the queue and let it play.
 

Media provider:

Local device

Screenshots:

     

Many devices have issues with proper update of the progression during playback, specially when you start to deal with playback speed.

There’s currently not much you can do.

Thanks for your quick response.

Hello Tolriq,

I think this issue is relevant to this thread as it has the same root cause. If you would prefer me to open a seperate thread I will happily do so - I also wasn’t sure what logs to provide, or when to take them.

I’ve noticed that you’ve decreased the frequency of the notification being sent in subsequent versions, but the current behaviour is still causing unintended consequences.

The intended behaviour in Android is that the last played media is the first displayed in the media session panel. Due to Symfonium repeatedly updating it’s notification, it will be bumped back up to first in the panel even if it was not the last played, or if another media source is still playing sometimes! This is obviously counter intuitive, inconvient and confusing for the user.

In the screenshots attached of my notification history you can see that I listened to Spotify most recently, but Symfonium has sent many notifications since even though it’s state hasn’t changed (I haven’t played any media or changed song). This leads to the Symfonium notification being first in the panel.



This is Android 12, Symfonium 11.4 b6

EDIT: Here is a more dramatic example of when the behaviour is incorrect.
In this example I am listening to a Youtube video. I leave the Youtube video playing and do not open Symfonium or interact with the application or it’s notification. At first, the Youtube video is the top notification in the media session. After a few minutes, Symfonium sends a notification and takes over the top spot, so when I swipe down to control my currently playing media (Youtube), I am instead presented with a different, non-playing app. I have added a last screenshot to show the Youtube video is still playing while it is in second spot (indicated by the second dot being highlighted.)




You already know that it’s not the same as it was during playback and you already know that I can’t do anything from screenshots :slight_smile:

So open a proper issue specific to that, the the only way this happens currently would be that somethings kills the app then restart it. This cause the queue to restore and the media session update so people can resume.

I will open a thread. Do you need a bugreport or will symfonium logs be sufficient?

Bug report if they work is better.