# Sometime audio is not working

**URL:** <https://devforum.zoom.us/t/sometime-audio-is-not-working/31083>\
**Category:** iOS\
**Created:** [September 23, 2020, 1:03pm UTC](https://devforum.zoom.us/t/sometime-audio-is-not-working/31083 "2020-09-23T13:03:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yadav.rajat](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yadav.rajat/32/14466_2.png) [@yadav.rajat](https://devforum.zoom.us/u/yadav.rajat)\
**Post date:** [September 23, 2020, 1:03pm UTC](https://devforum.zoom.us/t/sometime-audio-is-not-working/31083/1 "2020-09-23T13:03:19Z")

</div>

Hi,

I am getting some error in call i.e, some time did not able to listen and send audio.

Log that i am getting is below:

**2020-09-23 18:27:10.919947+0530 Development[4371:812250] audioSessionDidInterruptNotification 1**  
**2020-09-23 18:27:22.958340+0530 Development[4371:812250] audioSessionDidInterruptNotification 0**

**2020-09-23 18:27:23.602855+0530 Development[4371:812250] [aurioc] 1540: AUIOClient\_StartIO failed (561145187)**

**2020-09-23 18:27:23.628872+0530 Development[4371:812854] [IOS].TerminateAudioUnit g\_audioUinits.count = 1**

**2020-09-23 18:27:23.686066+0530 Development[4371:812854] [IOS].TerminateAudioUnit dispose all audioUinits**

**2020-09-23 18:27:23.787984+0530 Development[4371:812854] InitAudioUnit use hardware aec = 1**

**2020-09-23 18:27:23.804925+0530 Development[4371:812854] [IOS].InitAudioUnit g\_audioUinits.count = 1**

**2020-09-23 18:27:24.031121+0530 Development[4371:812854] [aurioc] 1540: AUIOClient\_StartIO failed (561145187)**

---

<div class="post-metadata">

**Author:** ![yadav.rajat](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yadav.rajat/32/14466_2.png) [@yadav.rajat](https://devforum.zoom.us/u/yadav.rajat)\
**Post date:** [September 23, 2020, 5:25pm UTC](https://devforum.zoom.us/t/sometime-audio-is-not-working/31083/2 "2020-09-23T17:25:03Z")

</div>

Hi,

I debug it and found that i have a wkWebView in my app and i set wkwebview configuration:

```
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
config.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeAll;
config.allowsInlineMediaPlayback = YES;
        
self.wkWebView = [[WKWebView alloc] initWithFrame:self.view.frame configuration:config];

```

due to setting of this configuration my audio in call is not working properly.

**NOTE:** wkWebView object is in memory at the time of call.

---

<div class="post-metadata">

**Author:** ![yadav.rajat](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yadav.rajat/32/14466_2.png) [@yadav.rajat](https://devforum.zoom.us/u/yadav.rajat)\
**Post date:** [September 24, 2020, 12:44pm UTC](https://devforum.zoom.us/t/sometime-audio-is-not-working/31083/3 "2020-09-24T12:44:18Z")

</div>

Hi,

please find my some more observations on this:

1. When i am in zoom call and in background play some audio so get " **audioSessionDidInterruptNotification 1**" but when again come in zoom calling did not always get " **audioSessionDidInterruptNotification 0**" so may be audio session not start again after interruption.

2. When i am in zoom call and receive another call on hangout or skype and then rejoin zoom call so getting other meeting members voice so slow.

First one is happening when i add **“allowsInlineMediaPlayback = YES”** in wkwebview configuration.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 24, 2020, 4:28pm UTC](https://devforum.zoom.us/t/sometime-audio-is-not-working/31083/4 "2020-09-24T16:28:07Z")

</div>

Hey @yadav.rajat

Thanks for using the dev forum!

If I am understanding this correctly, without the webview the audio behaves normally?

If so, have you tried this:

> <https://stackoverflow.com/questions/43885705/how-to-play-video-inline-with-wkwebview>

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![yadav.rajat](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yadav.rajat/32/14466_2.png) [@yadav.rajat](https://devforum.zoom.us/u/yadav.rajat)\
**Post date:** [October 1, 2020, 12:45pm UTC](https://devforum.zoom.us/t/sometime-audio-is-not-working/31083/5 "2020-10-01T12:45:43Z")

</div>

Hi @Michael_Condon

I am getting this issue very frequently that is suppose user is in zoom call and simultaneously user play a youtube video in my app (I have implemented YTPlayer to play youtube video). after the video finished did not get voice over call. May be it breaks the audio session for call or interruption in audio session does not end.

There is any way that i can start a new audio session for ongoing call? or how can i get rid from this issue?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [October 7, 2020, 6:49pm UTC](https://devforum.zoom.us/t/sometime-audio-is-not-working/31083/6 "2020-10-07T18:49:37Z")

</div>

Hey @yadav.rajat

I am sorry that this is happening. There is a way to reset the audio session using resetMeetingAudioSession. But with this many moving pieces it is hard to tell if the SDK is causing the issue or not. Would you be able to provide a sample app of this situation so that I can take a look? Or can you reproduce the issue in our sample app? [https://github.com/zoom/zoom-sdk-ios](https://github.com/zoom/zoom-sdk-ios)

Michael
