Skip to main content
Inspiring
May 2, 2017
Question

AIR does not read external microphone when recording

  • May 2, 2017
  • 0 replies
  • 248 views

On iOS devices running iOS 10.x, AIR does not always detect external microphones connected via Lightning connector. AIR will always use the Lightning microphone when connected to Flash Media Server using a NetStream and broadcasting over RTMP. However, AIR will not detect or use the Lightning microphone when recording audio locally, unless the microphone is plugged in after the user starts recording.

In other words, if you plug in a Lightning microphone and then run

microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, microphone_sampleDataEventHandler);

AIR will not use the Lightning microphone. However, if you run

microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, microphone_sampleDataEventHandler);

and then plug in the microphone while the app is already recording, AIR will use the microphone.

This bug is preventing us from releasing the next version of our app. Are there any better workarounds that don't require the user to wait until after they've started recording to plug in the mic?

Tested using AIR 23 and 24.

See Tracker

This topic has been closed for replies.