As the title says, I need to detect users taking off their airpods when playing music. For some reasons I must use AVAudioplayer rather than MPMusicPlayer to play music, and AVAudioSession only can receive pause event when all of airpods are taken off.
Is there any method with AVFoundation can detect single Airpod is taken off? Or Apple does not implement this in AVFoundation?