-
Notifications
You must be signed in to change notification settings - Fork 259
Apple EarPods button doesn't pause/resume music #43
Comments
Thanks for looking into it. Unfortunately I don't have access to EarPods and I haven't been able to find relevant information on how it works. Let me know if you find any details. |
It looks like the headphone button presses are low level |
Same thing happens with bluetooth headphones. The media keys control iTunes rather than Google Music |
Unfortunately I don't have bluetooth headphones with media controls, or Apple EarPods, so I can't develop this myself. I'm keeping this issue open in case anybody who has these and can develop a solution can contribute a pull request. |
The same happens when trying to use an Apple remote. The controls open iTunes instead of controlling Google Music. I would assume this could probably be corrected in the same way as the Apple EarPods or Bluetooth headphones. |
Since Snow Leopard pressing the EarPod button starts up iTunes instead of allowing one to control an already running media app. A Remote Control Daemon checks for that and opens up iTunes. There is no easy or proper way to do this, that is, other than modifying the rcd binary. [https://github.com/thebitguru/play-button-itunes-patch] This is also the reason no other app such as VLC, Spotify etc have this functionality. |
After digging a bit, I did see that the G-ear app accomplishes this by using a preference pane called Magic Keys that routes the button presses to the app. So it looks like you are correct, it may not be possible. |
Repo for Magic Keys: https://github.com/zsoltt/MagicKeys, maybe that helps. |
@se-bastiaan I tried Magic Keys, it lets me open Radiant if closed from remote on headphones but not pause/play. |
There is an app to fix bluetooth play/pause/next/prev issues for Spotify: https://github.com/jguice/mac-bt-headset-fix |
For anyone interested, whilst not a fix this can be implemented (at least with wired headphone buttons) using controllermate as described here: http://apple.stackexchange.com/questions/52353/headphone-play-pause-button-controls-itunes-only Create a new controllermate profile thing, press your button of choice and drag the controller onto the page. Change the applescripts to reference Radiant Player rather than spotify, and also modify the "previous track" to "back track" (that stumped me for an hour or so before reading the cocoa definition file thingie) |
@afunix This works great for my needs! Thanks! |
When I use the headphones that came with my iPhone to listen to music with this app and press the button, iTunes opens instead of the music being paused.
The behavior should be:
Single press: pause
Double press: next song
Triple press: previous song
@kbhomes I'll look at this over this weekend and see if it's easy to implement. If so, I'll send you a pull request.
The text was updated successfully, but these errors were encountered: