# Microphone not working while app has AVFoundation Framework

**URL:** <https://devforum.zoom.us/t/microphone-not-working-while-app-has-avfoundation-framework/23391>\
**Category:** iOS\
**Created:** [July 7, 2020, 7:29am UTC](https://devforum.zoom.us/t/microphone-not-working-while-app-has-avfoundation-framework/23391 "2020-07-07T07:29:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandiyaraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pandiyaraj/32/7093_2.png) [@pandiyaraj](https://devforum.zoom.us/u/pandiyaraj)\
**Post date:** [July 7, 2020, 7:29am UTC](https://devforum.zoom.us/t/microphone-not-working-while-app-has-avfoundation-framework/23391/1 "2020-07-07T07:29:20Z")

</div>

**Description**

Hi Team,

The microphone is not working while if I navigate the Application screen which contains AVPlayer and AVSpeechSynthesizer classes. My audio is connected and its unmute only.

A microphone is working on all the other screens.

**Which version?**  
v4.6.21666.0428

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 10, 2020, 7:00am UTC](https://devforum.zoom.us/t/microphone-not-working-while-app-has-avfoundation-framework/23391/2 "2020-07-10T07:00:55Z")

</div>

Hi @pandiyaraj,

Thanks for the post.This is a conflict when both SDK and your app is trying to use the audio at the same time. Please try to set the category of `AVAudioSession` to be `AVAudioSessionCategoryPlayAndRecord` before starting a meeting of after finished using the `AVPlayer` like the following:

```auto
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];

```

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![pandiyaraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pandiyaraj/32/7093_2.png) [@pandiyaraj](https://devforum.zoom.us/u/pandiyaraj)\
**Post date:** [July 10, 2020, 7:23am UTC](https://devforum.zoom.us/t/microphone-not-working-while-app-has-avfoundation-framework/23391/3 "2020-07-10T07:23:11Z")

</div>

Thanks Much Carson.

Issue got fixed. But now i am facing another issue in screen share.

Our app has a sequence of images to be shown with animation on it. In iOS Zoom SDK, this animation is displayed on the guest side when screen sharing is on. It looks choppy and some animations were skipped to the guest.

Is there any way to enable optimize fullscreen clips and increase the refresh rate?

Please let us know how to resolve this?

**Which version?**  
v4.6.21666.0428

ForumLink: [Optimize screenshare - Animations looks choppy on screenshare in iOS](https://devforum.zoom.us/t/optimize-screenshare-animations-looks-choppy-on-screenshare-in-ios/23690)

Note: Also we have seen in “Optimize Screen Share for video clip” will give more speed. How to enable Mobile SDKs- iOS.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 10, 2020, 8:17am UTC](https://devforum.zoom.us/t/microphone-not-working-while-app-has-avfoundation-framework/23391/4 "2020-07-10T08:17:17Z")

</div>

Hi @pandiyaraj,

Thanks for the reply. I have replied to you in that post and I will provide further assistance over there.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:38pm UTC](https://devforum.zoom.us/t/microphone-not-working-while-app-has-avfoundation-framework/23391/5 "2020-08-21T22:38:59Z")

</div>

Closed on August 21, 2020, 10:38pm UTC


