Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing Apple Earbud Clicker Controls in C

Tags:

c

objective-c

hid

I wanted to find out if there was any way to have applications access and listen to the Apple Earbud's Clicker controls on the newer headphones, much like applications can listen to the IR Receiver for customized Apple Remote functionality. I know that iTunes has this ability (more precisely iTunes Helper) because when I double-click the play/pause clicker iTunes opens. I have looked into trying to access the clicker from HID/IOServices but currently am unable to find an answer, if anyone is able to shed light on this subject it would be much appreciated.

like image 329
TheCrypticAce Avatar asked Feb 27 '11 21:02

TheCrypticAce


1 Answers

I suspect you could hook into this by making your app play audio (silence perhaps?) and then receive the events as "control events" for your "audio player." You might look at the AV Foundation Framework as a place to start.

like image 107
ipmcc Avatar answered Sep 23 '22 00:09

ipmcc