Hi
I have implemented a video calling application using webRTC.While connecting video calls in iOS with speaker getting a lot of noise and some metallic sound in the background.This is very annoying while talking.I'm using playandrecord category and voice chat mode for avaudiosession.Can anyone please help on this.
I'm using below code for audio player setting:
do {
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, options: [.allowAirPlay,.allowBluetooth])
// try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playAndRecord)
try? AVAudioSession.sharedInstance().setMode(AVAudioSession.Mode.voiceChat)
} catch let error as NSError {
print("setCategory error: \(error.localizedDescription)")
}
do { try AVAudioSession.sharedInstance().setActive(true,options: .notifyOthersOnDeactivation)
}
--
Regards,
Bhavani Chada
iOS Developer
ISTPL
Mobile:9948043146
Hyderabad