Emulating the start/stop button on the remote control of the iPhone
You'd be better off taking a bluetooth remote control and hacking that into what you need. The track controls on the earbuds is fairly complex.

http://www.amazon.com/Satechi-MediaRemote-Bluetooth-Multi-Media-Control/dp/B00824948U/