iDevGames Forums
Skip Song Signals/Inputs - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Tools & Technology (/forum-10.html)
+--- Thread: Skip Song Signals/Inputs (/thread-10590.html)



Skip Song Signals/Inputs - SparkyNZ - May 9, 2013 01:20 PM

Hi. I have my iPhone connected to my car. I can press "skip to previous song" and "skip to next song" buttons on my car's steering wheel and this sends a signal through the cable to the iPhone. The default iPhone music player can then skip the tracks accordingly..

My question: Can somebody please tell me how I can intercept these signals from an application of my own?

If anyone can point me in the right direction I would greatly appreciate it.

Cheers
Sparky


RE: Skip Song Signals/Inputs - SparkyNZ - May 9, 2013 04:01 PM

Got the answer I needed on another forum:

UIEventSubtypeRemoteControlPreviousTrack
UIEventSubtypeRemoteControlNextTrack

http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/Remote-ControlEvents/Remote-ControlEvents.html