# How do I enable "Call via device Audio" automatically

**URL:** <https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888>\
**Category:** Android\
**Created:** [September 11, 2020, 8:39am UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888 "2020-09-11T08:39:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthik.rt\_01](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@karthik.rt\_01](https://devforum.zoom.us/u/karthik.rt_01)\
**Post date:** [September 11, 2020, 8:39am UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/1 "2020-09-11T08:39:32Z")

</div>

I am using Android SDK for Zoom integration and I join a zoom meeting using MeetingService.handZoomWebUrl.  
Although before joining a meeting, I do not want to give the user the popup to select an Audio device, and it should enable the “Call via Device Audio” option by default. Is there any param that I should pass in the URL so that this happens automatically.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 11, 2020, 5:21pm UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/2 "2020-09-11T17:21:59Z")

</div>

Hi @karthik.rt_01, thanks for using the devforum.

Looking at our [Client URL Scheme documentation](https://marketplace.zoom.us/docs/guides/guides/client-url-schemes), there does not appear to be a query parameter that will allow you to join with audio turned on. Your only option would be to enable it programmatically after successfully joining the meeting with the following code:

```auto
ZoomSDK.getInstance().getInMeetingService().getInMeetingAudioController().connectAudioWithVoIP();

```

Thanks!

---

<div class="post-metadata">

**Author:** ![joek](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joek/32/19256_2.png) [@joek](https://devforum.zoom.us/u/joek)\
**Post date:** [January 16, 2021, 4:50am UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/3 "2021-01-16T04:50:15Z")

</div>

> [@jon.zoom](#):
>
> `connectAudioWithVoIP`

When is the proper time to call this function? Is immediately after `joinMeeting` too early?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 19, 2021, 7:28pm UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/4 "2021-01-19T19:28:43Z")

</div>

Hi @joek,

You would only be able to join meeting audio after successfully joining a meeting. Since `joinMeeting` starts an asynchronous process, calling `connectAudioWithVoIP` immediately after creates a race condition which may not be met by the time you attempt to connect to audio.

To ensure you have successfully joined the meeting before connecting to audio, please listen to the `onMeetingStatusChanged` callback within `MeetingServiceListener`:

```java
@Override
 public void onMeetingStatusChanged(MeetingStatus meetingStatus, int i, int i1) {
    if (meetingStatus == MeetingStatus.MEETING_STATUS_INMEETING) {
        // You have successfully joined the meeting
    }
}

```

Thanks!

---

<div class="post-metadata">

**Author:** ![rehnsaeed08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehnsaeed08/32/17367_2.png) [@rehnsaeed08](https://devforum.zoom.us/u/rehnsaeed08)\
**Post date:** [January 20, 2021, 1:08pm UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/5 "2021-01-20T13:08:07Z")

</div>

Thank you so much after reading all the discussions my problem has been solved[.](https://bestvacuumcleanerr.com/best-handheld-vacuum-cleaners/) Thank you, Sir/ma’am.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 20, 2021, 6:14pm UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/6 "2021-01-20T18:14:47Z")

</div>

Hi @rehnsaeed08, thanks for using the dev forum.

I’m really happy to hear that we were able to solve your issue! Please don’t hesitate to reach back out if you encounter any other problems using our SDKs. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![joek](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joek/32/19256_2.png) [@joek](https://devforum.zoom.us/u/joek)\
**Post date:** [January 20, 2021, 7:35pm UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/7 "2021-01-20T19:35:28Z")

</div>

This helps thanks! I assume it’s the same for iOS?

---

<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:** [January 21, 2021, 3:18am UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/8 "2021-01-21T03:18:12Z")

</div>

Hey @joek,

There is not a direct equivalent to connectAudioWithVoIP on iOS. However, you can set your audio type to VoIP by changing the `audioType` property within `MobileRTCAudioStatus` to `MobileRTCAudioType_VoIP` for the user. Then you can call `connectMyAudio`.

The `onMeetingStateChange` is available on iOS as well, however.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![joek](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joek/32/19256_2.png) [@joek](https://devforum.zoom.us/u/joek)\
**Post date:** [January 25, 2021, 3:44pm UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/9 "2021-01-25T15:44:30Z")

</div>

For iOS can I just call ` [[[MobileRTC sharedRTC] getMeetingSettings] setAutoConnectInternetAudio: YES];` ?

From the documentation it seems like I could just call this and it should connect automatically.

---

<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:** [January 25, 2021, 7:47pm UTC](https://devforum.zoom.us/t/how-do-i-enable-call-via-device-audio-automatically/29888/10 "2021-01-25T19:47:38Z")

</div>

Hey @joek,

The call

> [[[MobileRTC sharedRTC] getMeetingSettings] setAutoConnectInternetAudio: YES];

will turn on the AutoConnectInternetAudio meeting setting. Which will connect the users’ audio via the internet when they join. The behavior is slightly different than that in my comment but yes this should work for your use case 🙂

Thanks!  
Michael
