# Missing audio when start app from killed state

**URL:** <https://devforum.zoom.us/t/missing-audio-when-start-app-from-killed-state/109777>\
**Category:** iOS\
**Tags:** ios\
**Created:** [May 13, 2024, 2:51am UTC](https://devforum.zoom.us/t/missing-audio-when-start-app-from-killed-state/109777 "2024-05-13T02:51:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![max.tran](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/max.tran/32/58046_2.png) [@max.tran](https://devforum.zoom.us/u/max.tran)\
**Post date:** [May 13, 2024, 2:51am UTC](https://devforum.zoom.us/t/missing-audio-when-start-app-from-killed-state/109777/1 "2024-05-13T02:51:21Z")

</div>

Hi supporters!  
I have 2 apps Doctor App and Patient App and using Callkit to handle video call between 2 apps. Our steps:

1. When Doctor call Patient (app Patient in background)
2. Callkit screen show then Patient accept call
3. Video call screen show in Patient App and 2 apps connect with each other.

Now there are some issues happen.

1. Sometimes Doctor app or Patient app is missing audio (some time include video)
2. Audio comes from internal speaker

Please help!

---

<div class="post-metadata">

**Author:** ![max.tran](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/max.tran/32/58046_2.png) [@max.tran](https://devforum.zoom.us/u/max.tran)\
**Post date:** [May 15, 2024, 12:55am UTC](https://devforum.zoom.us/t/missing-audio-when-start-app-from-killed-state/109777/2 "2024-05-15T00:55:39Z")

</div>

To make audio comes through speaker, we need to override default port to speaker like this

```auto
do {
            try AVAudioSession.sharedInstance().overrideOutputAudioPort(.speaker)
        } catch {
            print("======== Error OverrideOutputAudioPort \(error.localizedDescription)")
        }

```

---

<div class="post-metadata">

**Author:** ![max.tran](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/max.tran/32/58046_2.png) [@max.tran](https://devforum.zoom.us/u/max.tran)\
**Post date:** [May 31, 2024, 9:21am UTC](https://devforum.zoom.us/t/missing-audio-when-start-app-from-killed-state/109777/3 "2024-05-31T09:21:24Z")

</div>

When start call from CallKit, need set AVAudioSession active before reportIncomingCall.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 30, 2024, 7:21pm UTC](https://devforum.zoom.us/t/missing-audio-when-start-app-from-killed-state/109777/4 "2024-06-30T19:21:28Z")

</div>

Closed on June 30, 2024, 7:21pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
