Jump to content

Auto-plays when app is closed and mediavolume is adjusted


Go to solution Solved by andrewilley,

Recommended Posts

Been using the app for years. For the last few weeks, even if the app is closed, it will start autoplaying from where it left off whenever I increase the media-volume on my phone.
Usually have media volume to zero, but if I'm say sent a video or need audio when reviewing a captured video, the player automatically starts playing and therefore pauses whatever I'm about to watch. It is very frustrating.
For a while when I was using Spotify, it also paused that and started playing it's own music.
I have the "resume" settings turned off in Poweramp. Pause on disconnect however is enabled.

Not sure if any log-file from the app will help. But I'll of course provide if requested.

Build number: build-974-bundle-play [974004-862d3789]
Device: Asus Zenfone 6 2019
Android version: Stock Asus, Android 11.
Steps to reproduce: Play music. Pause and lower volume (sometimes also only using bluetooth playback and speakers already at zero). Close app in multitasking. Increase speaker/media volume and playback resumes automatically.

Link to comment
Share on other sites

31 minutes ago, andrewilley said:

There is also a feature to pause and then resume playback when volume is reduced to zero and subsequently raised again. Try turning that feature off in Settings=>Audio=>Advanced Tweaks, in case that's the cause in this case.

Andre

I'd been combing the settings for quite a bit, but didn't think that option was hidden in the advanced tweaks. Was this enabled automatically with a recent update?
It also states it only works when the UI or notification is visible, however for me it works constantly. So something seems to not be working completely as intended. I have both "Keep Notification", "Keep Inactive Media Notification" and "Keep Service" disabled in the settings, and always swipe it away. I've just enabled the remove on disconnect, to see if that also helps.
After disabling the mentioned feature, it doesn't autoplay anymore, however Poweramp still reacts and a silent notification pops up for a short period.

 

 

40 minutes ago, maxmp said:

@Drugoli Knight Poweramp has "Last Processed Commands" log in Settings (you can search for it). It will show what exactly starts Poweramp. Thanks!

Dump from the log:

==================
19:45:03.198 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
19:45:03.264 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
19:45:03.871 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
19:45:04.538 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
19:45:24.047 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
19:45:29.636 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
19:45:54.512 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
19:46:01.416 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
19:46:37.056 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
19:46:37.806 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
19:46:41.180 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
20:16:22.859 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
20:16:26.558 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
20:16:27.536 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
20:16:31.279 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
20:18:42.237 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
20:18:45.949 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
20:49:05.152 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
20:49:09.534 PlayerService TOGGLE_PLAY_PAUSE
from NotificationHelperViaBuilder pausePlaying 
==================
20:49:11.261 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
20:52:46.244 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
20:52:46.482 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
20:52:47.097 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
20:52:47.312 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
20:52:48.334 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
08:02:56.562 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
08:03:05.531 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
08:03:39.572 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT
IGNORE !playing
==================
08:05:12.700 PSAudioFocusHelper AUDIOFOCUS_GAIN

==================
08:05:31.502 PSAudioFocusHelper AUDIOFOCUS_LOSS
IGNORE !playing
==================
13:09:47.248 PlayerService TOGGLE_PLAY_PAUSE
from NotificationHelperViaBuilder pausePlaying 
==================
13:09:53.722 PSAudioFocusHelper AUDIOFOCUS_LOSS
IGNORE !playing

 

Link to comment
Share on other sites

@Drugoli Knight The log contains just notification press events and weird number of audio focus events (can be when player is paused in notification but is still in foreground).

The volume resume option is off by default.

The empty notification is a sign of Poweramp being called by some API when it’s in the background.

Link to comment
Share on other sites

  • 2 weeks later...
On 8/27/2023 at 4:38 PM, maxmp said:

@Drugoli Knight The log contains just notification press events and weird number of audio focus events (can be when player is paused in notification but is still in foreground).

The volume resume option is off by default.

The empty notification is a sign of Poweramp being called by some API when it’s in the background.

During these times, as far as I remember, the player was only in the background and I did audio level changes. Paused and closed from the notification, when it started playing.

 

Andrewiley's suggestion fixed it though for the time being, so I've marked it as the solution.

 

Thanks for the assistance!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...