views:

22

answers:

1

Hi,

I know that AVRCP abilities were added to iOS 4.1 (in iPod application now you can forward and rewind songs by using hardware buttons on supporting headsets).

I am trying to find any API for using these abilities in a music application that I work on.

The requirement is to catch play/stop, forward and rewind buttons events from the headset.

Any information will be more than welcome.

Thank you.

A: 

My guess is that as long as you register and listen for these events (although I am not aware of the syntax for that in iOS) your application should get these events.

The system will normally take care to route the events to your application and it will not matter if it is generated locally (via local action) or remotely from a bluetooth AVRCP control device.

Hope this helps.

Dennis Mathews
Thank you @Dennis, but I don't think it will work for me. There are few ways to play audio in iOS. One of the ways is to use an audio player that takes the full control of the UI/screen. I believe that this approach will receive the BT events. I use much lower level approach. Actually, I have few different players in the app. In addition I want to give these buttons some additional functionality (2 presses on FF will do some additional action etc.).
Michael Kessler