Sometime audio is not working

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)

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.

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.

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:

Thanks!
Michael

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?

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

Michael