在我的应用程序中,我想检查已经连接到手机的AVAudio端口类型。下面的代码适用于BluetoothA2DP和耳机,但当我将手机连接到汽车免提装置时不适用于BluetoothHFP。谁能帮我?!我认为已经阅读了关于免提/AV/蓝牙以及许多其他内容的所有SO帖子,但无法弄清楚为什么它无法识别BluetoothHFP输出端口类型。importAVFoundationfuncstartCheckAVConnection(){//settheAVAudioSessiontoallowbluetooth.Thisdo/try/catchdoesn'tseemtomakeadifferenceif
在我的应用程序中,我想检查已经连接到手机的AVAudio端口类型。下面的代码适用于BluetoothA2DP和耳机,但当我将手机连接到汽车免提装置时不适用于BluetoothHFP。谁能帮我?!我认为已经阅读了关于免提/AV/蓝牙以及许多其他内容的所有SO帖子,但无法弄清楚为什么它无法识别BluetoothHFP输出端口类型。importAVFoundationfuncstartCheckAVConnection(){//settheAVAudioSessiontoallowbluetooth.Thisdo/try/catchdoesn'tseemtomakeadifferenceif