AudioAnchor
AudioAnchor copied to clipboard
Android 11 problem with playback control
When I stop the playback on Android 11 the player won't switch to "pause", instead the file is marked as if it was still playing.
Reproduce:
- Start a file on Android 11
- Hit pause
- AudioAnchor thinks the file is still being played
Thanks for reporting this! I'll have a look at it.
Just to make sure we're talking about the same thing here: What do you mean when you say "AudioAnchor thinks the file is still being played"?
Do you mean in the Main or Album Activity the speaker icon is still shown for the just paused file? Because this is the desired behavior. It just tells you that this is the currently active item.
Or do you mean that e.g. in the Play Activity or the notification the play/pause button still shows the pause icon instead of the play icon? This is a behavior I could not reproduce.
Do you mean in the Main or Album Activity the speaker icon is still shown for the just paused file? Because this is the desired behavior. It just tells you that this is the currently active item.
Hmm... my desired result is the pause button showing in Album Activity, but when I start a file and stop it midway, then I get the play button in Album and Main Activity. If this is the desired behaviour of AudioAnchor, I would like to propose a change of the behaviour, because it is very inconvenient.
I experienced a second problem and recorded it. This happens when Autoplay is deactivated.
The inconvenience being that you can't mark the file as not started or as completed or delete them from the database, right? Or is there anything else? In Android versions < 11 you can remove the notification which will stop the Media Player Service such that you should be able to modify the file in the database. I think this might not work with Android 11 although I could not figure out why. I couldn't find any reported changes in the system that would explain this behavior.
I think the second issue is more pressing. I'll have a look into it, thanks for reporting it!
The issue with clicking play on completed files should now be solved.