I am using the AVAudioPlayer
class to play .mp3 files in my App. Is it possible to check whether the earphones are connected to the device programmatically?
In first generation iPod devices, the volume control bar is hidden (for music and videos) when no earphones are connected.