QuickBlox / quickblox-ios-sdk

QuickBlox iOS SDK for messaging and video calling
https://quickblox.com/developers/IOS
MIT License
397 stars 358 forks source link

Wrong audio output on call #1282

Closed maughray closed 1 year ago

maughray commented 3 years ago

When AirPods or EarPods are connected, it works great, but when connecting other wireless headphones (in my case is Beats) then built-in speaker is used instead. Accessing AVFoundation.sharedInstance().currentRoute.outpus returns only Beats Wireless Headphones, but after activation below configuration, it returns Speaker instead.

Here is my configuration:

let config = QBRTCAudioSessionConfiguration()
config.category = AVAudioSession.Category.playAndRecord.rawValue
config.mode = AVAudioSession.Mode.videoChat.rawValue
config.categoryOptions.insert(.allowBluetooth)
config.categoryOptions.insert(.allowBluetoothA2DP)
config.categoryOptions.insert(.duckOthers)
config.categoryOptions.insert(.allowAirPlay)
QBRTCAudioSession.instance().setConfiguration(sessionConfig, active: true)

My headphones has no microphone, but I want to use internal micro instead. How do I do that?

Can someone provide a sample code for choosing audio output from action sheet? I found on the internet that this can be done only by selection one of options from currentRoute.output, but I always have only one output. I also tried to change different categories and modes, but nothing seems to work.

Thanks.

ghost commented 2 years ago

Hello @maughray

This is Nikolay from QuickBlox support.

According to our experience, the issue is on the Apple side and other messengers like Telegram experience the same issue.

Apple requests the source code of the application to investigate the problem, as well as a detailed description of how the application works.

Since we do not have a detailed workflow of how your application works, as well as what additional modules/libraries are connected, we do not have the opportunity to fully convey the information to Apple.

I recommend you to contact Apple Support to securely provide them with the source code, for ease of communication directly and to speed up the communication process to resolve the issue as soon as possible.

If during the investigation of the problem you have any questions or need additional information from us, we will be happy to help.

Please contact Apple Technical Support for Developers at the following link and let us know when the issue is resolved: https://developer.apple.com/support/technical/