Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play/pause toggled incessantly by USB-C headphones #95

Open
4 tasks done
deadcombo opened this issue Sep 27, 2024 · 4 comments
Open
4 tasks done

Play/pause toggled incessantly by USB-C headphones #95

deadcombo opened this issue Sep 27, 2024 · 4 comments

Comments

@deadcombo
Copy link

deadcombo commented Sep 27, 2024

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 to occurs with a certain podcast, I will include the URL of that podcast.

App version

6.8.0

Where did you get the app from

GitHub release apk

Android version

GrapheneOS 2024091900

Device model

Pixel 7 Pro

First occurred

about 2/3 weeks ago

Steps to reproduce

  1. Play podcast
  2. Connect headphones (via USB-C to 3.5mm adapters). Must be a cable without a microphone.

Expected behaviour

Playback starts and continues until I interrupt it.

Current behaviour

I suspect this is a media3/OS bug as I experience it in other media3 players. I need help working out how/to whom to report.

Play/pause is incessantly toggled as if spamming the button as hard as possible. I have recorded the screen.
screen recording of bug

the issue is not present on a cable with a microphone (3-ring TRS). Only the 2 ring (left and right) triggers it.

My apologies for turning to your issue tracker. I need help and Podcini has the better logging of any media3 app I found.

This does not ocurr in AntennaPod. It does not ocurr in RiMusic or the Phonograph audio player. It does not occur in NewPipe (YouTube), neither in the browser. It occurs in Voice audiobook player (media3), gramophone music player (media3).

Logs

full-logs.txt

@XilinJia
Copy link
Owner

Thank you for the report.
6.8.0 is in preview mode, so I can't say if it relates to something I've temporarily disabled for transition or not. Could you try 6.7.3 and let me know if that occurs in the same fashion?

@deadcombo
Copy link
Author

deadcombo commented Sep 27, 2024

I have installed Podcini.R_release_free_6.7.3_arm64-v8a.apk from Releases. The problem is present. I did not import the database, only added one local folder and played a file.

One important detail I neglected to mention is the issue is not present on a cable with a microphone (3-ring TRS). Only the 2 ring (left and right) triggers it.

Worth mentioning I use a Samsung adapter. I have also purchased an off-brand adapter to test, it made no difference.

@XilinJia
Copy link
Owner

XilinJia commented Oct 1, 2024

I checked the log. it appears onStartCommand of PlaybackService keeps getting called by the system for some reason, with: keycode=-1 keyEvent=null customAction=null hardwareButton=false action=null.

I'm uploading a debug version under release 6.7.3, could you try it and upload the log here? The debug app installs separately and won't affect your release version.

@deadcombo
Copy link
Author

Sure, I've attached a log.
full-logs.txt
I've found that I can play Podcini and others without issue if there isn't any media3 player with a session to resume (no widget in the quick settings drawer).
I plug in normally and I can start playback for any amount of time without issue, including seeking, forward/back, switching players... However if there is a session to resume it immediately starts playing and the issue manifests.

Another particularly is the recents menu. (video captured from the debug release).

cc61d6aa-df78-4cae-911a-27b1eeea1a7f.mp4

If I swipe to recents from Podcini the issue stops for as long as I'm in the recents menu. As soon as I select an app it resumes. If I go to recents from an app other than Podcini it does not stop.

Thanks for your efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants