As the title described, I'd like to let people can switch the output device between headphone and speaker while the sound is playing. For example, when people make his/her ear close to the phone, it turns to use headphone to play the sound, otherwise use speaker to play the sound.
How to implement this use AFSoundManager?
As the title described, I'd like to let people can switch the output device between headphone and speaker while the sound is playing. For example, when people make his/her ear close to the phone, it turns to use headphone to play the sound, otherwise use speaker to play the sound. How to implement this use AFSoundManager?