Triple-click on a wired headset remote no longer rewinds
Checklist
- I have used the search function for OPEN issues to see if someone else has already submitted the same bug report.
- I have also used the search function for CLOSED issues to see if the problem is already solved and just waiting to be released.
- I will describe the problem with as much detail as possible.
- If the bug only occurs with a certain podcast, I will include the URL of that podcast.
App version
3.12.2
Android version
Android 16 (LineageOS 23.2, microG)
Device model
OnePlus CPH2513
First occurred
3.12.0. The double-click broke at the same time and came back in 3.12.2, but the triple-click did not.
Steps to reproduce
- Plug in wired headphones with a single button on the cable.
- Start playing an episode.
- Click the button three times quickly.
Expected behaviour
Rewind, the way it worked up to 3.11.4: one click played or paused, two fast-forwarded, three rewound.
Current behaviour
It fast-forwards 30 seconds, then pauses playback a moment later.
What I found
Thank you for the Media3 migration, and for the quick fixes in 3.12.2. My double-click has been working again since then and it is the one I use most, so this is just the small leftover.
As far as I can tell, Media3 only detects two taps, never three. The second tap is what triggers the fast-forward, and the third one is then treated as a fresh single click, which is why playback pauses right after. So a triple-click can only ever come out as a double-click plus a single click.
There is a comment on the develop branch saying that Media3 turns a triple-tap into a previous-track event. I do not think that ever happens, at least not for a single-button cable remote.
The old behaviour used to be handled by AntennaPod itself, counting one, two or three clicks. That code is still in the repository, just unused. Bringing the rewind back probably means counting the clicks in the app again rather than waiting for Media3 to report them.
Someone mentioned the same thing in a comment on #8645 in August, but the issue was closed on a different part of the problem and this part was not picked up.
I am happy to test builds if that helps. I have a wired remote and can reproduce it every time.
Source: AntennaPod/AntennaPod