I wonder if it's possible to detect that the user has an external headset plugged into the iPhone's 3.5mm connector or the 30-pin connector. I want to output audio only to an external audio device, and keep silent if nothing is connected.
Ari.
I wonder if it's possible to detect that the user has an external headset plugged into the iPhone's 3.5mm connector or the 30-pin connector. I want to output audio only to an external audio device, and keep silent if nothing is connected.
Ari.
The answer is very similar to the answer to this question, but you'll want to get the kAudioSessionProperty_AudioRoute property instead.