-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
App ignores commands from headset #111
Comments
Hi, I'm gonna send you a test apk. :) |
That would be great! Here they are: |
Do you resume playback too with pause button? |
Yes |
I registered those key events here: https://drive.google.com/open?id=12i7uOBCtCeiRMY3i8Z0QC42n8hIbfHjL |
That's strange. I can see MediaKeyEvents in LogCat viewer, but the app still ignores them |
in the logcat you should find a output called "action". Could you post it here? https://drive.google.com/open?id=1kBl7cHefGQAk0OSg_OPl9UTx3LSGzySp |
I might be doing something wrong, but if I do
I can see basically nothing:
Logcat itself is file,
If I grep "action" there are much more, but it is still useless. The only thing related to the buttons in the logs are still KeyEvents:
|
Could you please try? https://drive.google.com/open?id=1Q4LpN2mrxaTTEqG_yTz5piX9hKXIbDOM |
Now I can go to next/previous track and pause the track, but I can't unpause it. |
Can you describe the buttons? Do you have one button to manage play pause? |
Yes |
Amazing, it is working! Thanks! |
Great, thanks!! |
Hi, sorry for the disturb but I need you to test this apk https://drive.google.com/open?id=1fsvkv7dkm28lRCdWqq8q3dpilqaFZ7VJ I'm trying to optimize the code for media buttons.
thanks |
I`m afraid that this headset died couple of days ago :D Sorry for that |
noooooo, i'm sorry... my nexus 5 died yesterday because of swollen battery and I now have to use emulator... No problem, there's an app in the sdk to help devs to test hardware controls. https://drive.google.com/open?id=1kp0yVFDwwLeo5oF7eawTRdQqeeY6mciM Could you please install this apk, then click on the 3 dots -> hardware controls and let me know if the buttons are working also for you (just to be sure) with the apk above? thanks |
I've tested it with this app, and hardware buttons work just fine. When the app is closed from the notification, it closes just fine, nothing special happens.
Jan 19, 2020 19:36:03 enricocid <[email protected]>:
…
noooooo, my nexus 5 died yesterday because of swollen battery and I now have to use emulator...
No problem, there's an app in the sdk to help devs to test hardware controls.
https://drive.google.com/open?id=1kp0yVFDwwLeo5oF7eawTRdQqeeY6mciM [https://drive.google.com/open?id=1kp0yVFDwwLeo5oF7eawTRdQqeeY6mciM]
Could you please install this apk, then click on the 3 dots -> hardware controls and let me know if the buttons are working also for you (just to be sure) with the apk above. thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [#111?email_source=notifications&email_token=AID4EL667GC356CAHBSXV5TQ6R6PDA5CNFSM4KFRTRUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKWOLY#issuecomment-576022319] , or unsubscribe [https:/notifications/unsubscribe-auth/AID4EL6ZVUXR7WRJSHA3GGLQ6R6PDANCNFSM4KFRTRUA] . [https:/notifications/beacon/AID4EL7WXTSX2NDRJ4OIDRTQ6R6PDA5CNFSM4KFRTRUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKWOLY.gif]
|
Thanks. |
Well, nothing. It is probably intended behavior, right?
Jan 19, 2020 19:43:27 enricocid <[email protected]>:
…
With the app closed/killed service, what happens if you use hardware controls?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [#111?email_source=notifications&email_token=AID4EL6KU2KNCBSQ22U4L43Q6R7K3A5CNFSM4KFRTRUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKWTKI#issuecomment-576022953] , or unsubscribe [https:/notifications/unsubscribe-auth/AID4EL6QCCHENMKXUW7JFFLQ6R7K3ANCNFSM4KFRTRUA] . [https:/notifications/beacon/AID4EL6DCAYOX4ZXM6B3AP3Q6R7K3A5CNFSM4KFRTRUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKWTKI.gif]
|
Yes, I want the app to respond to buttons only when opened or playback is active. The default behaviour of android os is to try to launch playback from the latest app connected to mediabrowserservice... since i've not implemented the full client the app crashes on certain devices so I had to ensure to disable this behaviour to avoid issues :) thanks :) |
Hi! I'm running version 4.0.1 from F - Droid on Android 9. Player works very well, and I love it, but I faced an issue: app ignores commands from headphones like pause or previous/next track. But it is definitely not headphones issue: they work well with other players. What logs can I provide to help fixing this bug? The only thing I could find by myself were logs in LogCat about headphones button press, but they seem normal, so I guess these are not really helpful:
01-11 14:49:58.111 D/NewAvrcpNativeInterface(2280): sendMediaKeyEvent: keyEvent=76 pushed=true
The text was updated successfully, but these errors were encountered: