# AudioType is being switched to NONE on its own

**URL:** <https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546>\
**Category:** iOS\
**Created:** [June 6, 2019, 6:47pm UTC](https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546 "2019-06-06T18:47:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oderza](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@oderza](https://devforum.zoom.us/u/oderza)\
**Post date:** [June 6, 2019, 6:47pm UTC](https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546/1 "2019-06-06T18:47:01Z")

</div>

**Description**  
Is there any reason why the AudioType would automatically switch from VOIP to NONE after joining a call? I’m using custom ui. Also, when I uninstall the application and build it again, the audio works fine the first time. It asks me to confirm if i want to give access to camera and microphone. Its when I run it a second time or after that there is no audio. There is still video however.

Using the latest version of the SDK, just downloaded it on Monday.

**Smartphone (please complete the following information):**

- Device: iPhone 7
- OS: iOS 12.3

---

<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:** [June 6, 2019, 11:22pm UTC](https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546/2 "2019-06-06T23:22:43Z")

</div>

Hi oderza,

Thanks for using Zoom SDK. Do you mean that even if you select VoIP after joining the meeting, then it will automatically switch to None? Could you provide more detail on how to reproduce this?

For custom UI, the idle/default status for AudioType is None after start/join a meeting, if you would like to join as VoIP, you can use the following interface before the meeting:  
`setAutoConnectVoIPWhenJoinMeeting`([https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingSettingsHelper.html#setAutoConnectVoIPWhenJoinMeeting-boolean-](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingSettingsHelper.html#setAutoConnectVoIPWhenJoinMeeting-boolean-))

Or use the following interface while in the meeting:  
`connectAudioWithVoIP`([https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingAudioController.html#connectAudioWithVoIP--](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingAudioController.html#connectAudioWithVoIP--))

Thanks!

---

<div class="post-metadata">

**Author:** ![oderza](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@oderza](https://devforum.zoom.us/u/oderza)\
**Post date:** [June 10, 2019, 10:17pm UTC](https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546/3 "2019-06-10T22:17:14Z")

</div>

I started deploying and testing on my iPad and the issue no longer happens. I will try again to see if it is still happening on my iPhone 7 and report back with iOS version.

---

<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:** [June 10, 2019, 10:38pm UTC](https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546/4 "2019-06-10T22:38:29Z")

</div>

Hi,  
Glad to hear that the issue no longer happens. Let me know if you have any other questions. Thank you!

---

<div class="post-metadata">

**Author:** ![schalky](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/schalky/32/1556_2.png) [@schalky](https://devforum.zoom.us/u/schalky)\
**Post date:** [August 13, 2019, 11:05pm UTC](https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546/5 "2019-08-13T23:05:35Z")

</div>

I was able to reproduce this scenario using the sample application on iOS as well as my own application. I have the settings in the zoom supplied iOS sample app as :  
[[[MobileRTC sharedRTC] getMeetingSettings] setAutoConnectInternetAudio:YES]  
and:  
[[MobileRTC sharedRTC] getMeetingSettings].enableCustomMeeting = YES  
via settings

Usually the first time I run the app connecting to the desktop application hosting the meeting, it works as expected, audio connects and works. After disconnecting and reconnecting to a meeting again I’ve seen the audio type switch from VOIP to None via the onSinkMeetingAudioStatusChange in CustomMeetingViewController+MeetingDelegate.m which in turn calls BottomPanelView:updateMyAudioStatus where reading the audioType via [ms myAudioType] returns MobileRTCAudioType\_None and sets the icon for the audio button to ‘icon\_meeting\_noaudio’. Tapping the button will then prompt for the type of Audio connection and connect correctly upon choosing the type. I was expecting this to not change.

You can also watch the ‘microphone’ icon disappear for the newly connected user in the Zoom desktop application if you have the ‘Manage Participants’ side panel open. The new user will appear with the microphone icon and video icon visible, but when this issue happens the microphone icon will disappear very quickly after you see the user appear (this is when you get the audio status change in the iOS SDK sample app).

---

<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:** [August 14, 2019, 11:35pm UTC](https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546/6 "2019-08-14T23:35:29Z")

</div>

Hi schalky,

Thanks for using Zoom SDK and thanks for the detailed information. I tried to reproduce the issue with the steps you were describing with our demo app and I am not able to see the same situation as you are mentioning. May I inquire which version of SDK are you using?

Here are the steps that I tried:

1. Set auto connecting VoIP using [[[MobileRTC sharedRTC] getMeetingSettings] setAutoConnectInternetAudio:YES];
2. Enable custom UI using [[MobileRTC sharedRTC] getMeetingSettings].enableCustomMeeting = YES;
3. Add a NSLog to print out the audio type in:[https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/CustomMeetingViewController%2BMeetingDelegate.m#L25](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/CustomMeetingViewController%2BMeetingDelegate.m#L25) by calling MobileRTCAudioType type = [[MobileRTC sharedRTC] getMeetingService].myAudioType;
4. Build the app and join a meeting that is started by the Zoom desktop client
5. Upon successfully joined the meeting, the myAudioType returns 0, which means the audio is VoIP. When you press the mute/unmute button, the audio type is still 0; If you press “More” and then press “Disconnect Audio”, then the audio type becomes 2, which is None.

You can also have a look at the here:[https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/BottomPanelView.m#L438](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/CustomMeeting/BottomPanelView.m#L438), the icon shown is depending on the audio type. If the audio type is none, then the icon won’t show correctly.

One assumption would be your audio device has some problems, if you are still getting this scenario, could you send us your .crash log and SDK log?

Hope this helps. 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, 6:28pm UTC](https://devforum.zoom.us/t/audiotype-is-being-switched-to-none-on-its-own/4546/7 "2020-08-21T18:28:49Z")

</div>

Closed on August 21, 2020, 6:28pm UTC


