AVAudioSession currentRoute not reporting AirPlay

Hi,

I'm having problems getting the correct reported status of an AVAudioSession when using AirPlay. From what I've read, I should be able to query the portType from AVAudioSession.sharedInstance().currentRoute but when AirPlaying from the device I'm using, the output seems to be Speaker. When I test with bluetooth, the correct value of BluetoothA2DPOutput is returned. Is this intentional, or am I doing something wrong?

Any help is much appreciated. Thanks.
AVAudioSession currentRoute not reporting AirPlay
 
 
Q