What's the difference among AVAudioSessionPortBluetoothHFP, A2DP and LE?
Asked Answered
Y

1

9

There are three different Bluetooth related audio port types documented in Apple's AVAudioSessionPortDescription reference. But Apple doesn't explain much about these three types. Can somebody help explain more?

Yabber answered 14/4, 2014 at 5:54 Comment(0)
P
23

AVAudioSessionPortBluetoothHFP | Input and Output

This is used when connected to a bluetooth devices through Hands-Free profile, like cars or earpieces. It can be accessed by setting your audio session category to AVAudioSessionCategoryPlayAndRecord and category option AVAudioSessionCategoryOptionAllowbluetooth.

AVAudioSessionPortBluetoothA2DP | Output only

This is mainly used for streaming audio using A2DP (advanced audio distribution profile). The small portable bluetooth speakers (like the Jambox) use this profile for streaming audio. It can be accessed by setting your audio session category to AVAudioSessionCategoryPlayback.

AVAudioSessionPortBluetoothLE | Output only

New as of iOS 7 however I am not aware of any devices that you can stream audio to that implement the Bluetooth Low Energy protocol.

Proteinase answered 20/6, 2014 at 19:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.