Hi supporters!
I have 2 apps Doctor App and Patient App and using Callkit to handle video call between 2 apps. Our steps:
- When Doctor call Patient (app Patient in background)
- Callkit screen show then Patient accept call
- Video call screen show in Patient App and 2 apps connect with each other.
Now there are some issues happen.
- Sometimes Doctor app or Patient app is missing audio (some time include video)
- Audio comes from internal speaker
Please help!
1 Like
To make audio comes through speaker, we need to override default port to speaker like this
do {
try AVAudioSession.sharedInstance().overrideOutputAudioPort(.speaker)
} catch {
print("======== Error OverrideOutputAudioPort \(error.localizedDescription)")
}
When start call from CallKit, need set AVAudioSession active before reportIncomingCall.
system
(system)
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.