seazon / FeedMe

The documents and forum of FeedMe
1.18k stars 27 forks source link

No media controls when playing podcasts/tts #699

Open sotn3m opened 4 months ago

sotn3m commented 4 months ago

Describe the bug No media controls visible when playing podcasts.

To Reproduce Steps to reproduce the behavior:

  1. Play any podcast/tts. The player is visible, but there is no media control in launcher view or in the notification area.

Expected behavior Media controls are visible and available. Podcasts not paused almost immediately when doing other tasks on the phone (a little bit longer when not using the phone).

Device info

Additional context

287 indicates that media controls are implemented and should be visible.

I have battery settings of FeedMe marked as "unoptimized". I remember reading that without anything in notifications area, Samsung OS more quickly kills applications.

sotn3m commented 4 months ago

After further investigation, I believe I’ve identified the issue. It seems to be related to the interaction with my launcher, the Niagara Launcher. Please note that I’m not an Android developer, so this is merely my interpretation of the situation.

The Niagara Launcher has a feature that aggregates selected notifications to prevent constant interruptions from unnecessary ones. One of the options available is to consistently aggregate “silent” notifications. When I disable this feature (which I’d prefer not to do), I notice a control widget appearing in the notification area.

Interestingly, the same launcher correctly recognizes “media control” from other applications. This leads me to believe that there might be a different API to manage this control without a standard notification. I suspect that utilizing this alternative API could potentially resolve the issue I’ve been experiencing and enhance the overall user experience (with availability in the launcher, notification area, lock screen, etc.). I would also hope this might prevent Samsung from killing the background process, which it still does.

I hope it helps.

seazon commented 4 months ago

the same launcher correctly recognizes “media control” from other applications. This leads me to believe that there might be a different API to manage this control without a standard notification.

Yes, feedme use a standard notification API to show the media controls. At the moment I can't guarantee when I can optimize it.