nice-room-70150
11/07/2025, 7:31 AMtall-airline-16756
11/07/2025, 7:31 AMtall-airline-16756
11/07/2025, 7:32 AM.playAndRecord
• Category Options: .mixWithOthers, .allowBluetoothHFP (for Swift 6.2+), .allowBluetooth (for earlier versions), .allowBluetoothA2DP, .allowAirPlay
• Mode: .videoChat or .voiceChat depending on your specific use case
This setup ensures that Bluetooth devices—whether it’s HFP for voice or A2DP for audio—and AirPlay work smoothly right out of the box during your LiveKit calls on iOS. If you have any more questions or need further help, feel free to ask!
Sources: Sources/LiveKit/Types/AudioSessionConfiguration.swift | src/audio/AudioSession.tsnice-room-70150
11/07/2025, 7:51 AMtall-airline-16756
11/07/2025, 7:52 AMAudioSessionConfiguration class actually requires this mode parameter to be set. For example, the default configurations like playAndRecordSpeaker and playAndRecordReceiver come with mode settings such as .videoChat or .voiceChat already included.
So, just a heads-up—it’s necessary to specify a mode flag when configuring the audio session. If you have any questions about this or need help with your setup, feel free to ask! We're here to support you every step of the way.
Sources: CHANGELOG.mdnice-room-70150
11/07/2025, 9:09 AMtall-airline-16756
11/07/2025, 9:09 AMAudioManager.shared.startLocalRecording() to capture audio directly from the microphone.
• Mixed Audio Recording: If you want to record a mix of local and remote audio, AudioMixRecorder is the way to go.
Just a quick reminder to include the NSMicrophoneUsageDescription key in your app’s Info.plist file to kindly ask users for microphone access. Also, if your app needs to record audio in the background, you can enable that feature as well.
One important thing to keep in mind is to always respect local laws about consent when recording calls. If you have any questions or need help with this, feel free to ask—I’m here to support you!
Sources: Tests/LiveKitCoreTests/AVFoundation/AudioMixRecorderTests.swift | README.md | Camera & microphone | LiveKit Docs | Swift quickstart | LiveKit docs | Session recording and transcripts | LiveKit Docs