Hacking apple headphones and controlling the input methods with sensors

Is it possible to use my ZX sensor and force sensor to override the headphone controls of the apple headphones and use arduino codes to pause/play/skip songs etc…

If so, what library would need to be installed.

I have checked this out and have not found any actual code examples to follow or any way to control the actual functions of the headphones from the codes.

Thank you -Ramona

Well a Simple way, is actually having apple headphones, and then logging the binary data that comes out of the microphone line on the 4 pin connectors. All you need to do, is to play that data back with your Arduino, into the corresponding pickup, and presto.