livekit / client-sdk-swift

LiveKit Swift Client SDK. Easily build live audio or video experiences into your mobile app, game or website.
https://livekit.io
Apache License 2.0
173 stars 84 forks source link

Unable to switch to speaker output when bluetooth headsets are connected #415

Open TypiYerke opened 1 week ago

TypiYerke commented 1 week ago

Describe the bug Unable to switch to speaker output when bluetooth headsets are connected Is there way to change output audio to BluetoothHeadset, Earpiece, Speakerphone in real time ? I used AudioManager.shared.preferSpeakerOutput = true/false to dynamic/speaker, but its not working when bluetooth headsets are connected

SDK Version LiveKit 1.1.6

iOS/macOS Version iOS 17.4.1

Xcode Version 15.2 (Please provide the Swift version if you know it)

Steps to Reproduce I used AudioManager.shared.preferSpeakerOutput = true/false to dynamic/speaker, but its not working when bluetooth headsets are connected