Skip to main content
Participant
August 6, 2014
Question

How to restore audio in iOS 8 (beta 5) after requesting mic access?

  • August 6, 2014
  • 1 reply
  • 731 views

I posted this question over on StackOverflow before realizing that the AIR team might be working on a fix: http://stackoverflow.com/questions/25168882/air4-how-to-restore-audio-in-ios-8-beta-5-after-requesting-mic-access

In a nutshell, requesting microphone input in iOS 8 will terminate all audio if it's done AFTER a sound has already been played, but not if it occurs before (sample code is in SO post).

Apps were tested using an iPad 3 the Flex 4.6.0 SDK with AIR 4.0, and with AIR 14.0 - the same behaviour was exhibited.

This poses serious problems for our apps, which are already released and being updated for iOS 8, so please let me know if this is a known issue, and if not, whether you're able to confirm from your side.

Thanks!

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
August 6, 2014

I had noticed the issue in iOS 8, but it's also an issue in iOS 7. The main difference is that iOS 7 recovers. If you start getting samples from the microphone, stop, null the microphone, and then play a new sound, the first couple of seconds of the sound is not heard. If I could figure out a cure for iOS 7 it might help iOS 8 too.

PanaxAuthor
Participant
August 6, 2014

Thanks for the reply. I've done that in my test code (see SO post), but it doesn't seem to make a difference?


I assumed that the brief interrupt in iOS 7 was while AIR was connecting to the device itself (taking ~600 to 2000ms) but in any case, that's not the behaviour that's causing me problems here!

Colin Holgate
Inspiring
August 6, 2014

Another bit of info, in my app I check for the microphone ahead of when it's needed, to provoke the permissions dialog (rather than waiting for the time when the recording is due to start). So, the sequence of events is:

intro audio phrase external MP3

check mic

play an intro FLV

Even the FLV's audio start is lost. So, not just to do with playing MP3s.