Skip to main content
Known Participant
December 13, 2011
Question

Music in iOS - Software Controls?

  • December 13, 2011
  • 2 replies
  • 1321 views

Hi All,

We've successfully gotten background audio working in iOS with AIR 3.1 -- the question though, is how to get iOS to recognize that you are playing MUSIC and not just a sound? We'd like to be able to tap into the play/pause/back/next soft buttons that are available in the OS.

This topic has been closed for replies.

2 replies

IdlemediaAuthor
Known Participant
March 6, 2012

So the core issue is that CanBecomeFirstResponder can't be overridden? Can a native extension not do this override?

Participating Frequently
March 6, 2012

I must say that I am not a IOS expert but basicly no..
This param is read-only for the UIApplication class that is the main class of the application in which the AIR content is rendered.
Not quite sure but there is no way to init a second UIApplication inside the of another.

Adobe Employee
December 14, 2011

Unfortunately you cannot control media playback in AIR apps through soft buttons available on iOS. However I really doubt if you can do that with native app as well.

IdlemediaAuthor
Known Participant
December 14, 2011

Native apps can do this, just look at pandora. If you start streaming then bring up the audio controls at the bottom it has pandora's logo. Our own native app does this (we're redoing in AIR to simplify development across platforms). I'm assuming, like the bugs relating to audio not respondng to mute, it's an issue related to how AIR defines the audio session type? If so, depending on how AIR does that, maybe a Native Extension could solve that.

Participating Frequently
March 6, 2012

Hi,
there is no way to do this but only beacause ther is something that canot be changed with native extension now..
I have posted an idea on adobeIdeas here
But mainly if that would be changed than this project will be working fine: https://github.com/mateuszmackowiak/SoundExtension