Web sdk - Connecting the user with computer audio automatically when joining

When the web sdk loads, it first shows a dialog where it asks the user to connect audio. I thought that for meetings created with audio:'voip' it will be gone and connected automatically with computer audio since there’s no other choice… however the user is still asked to click “join computer audio” button.

What can I do to skip this step and connect the user automatically with their computer audio?

Hi @shahar,

Right now the Web SDK does not have the capability to remove the step to join audio by computer. We’ll inform our Engineers about this.

1 Like

Hi @michael_p.zoom,

I am facing the same problem, any update about this item?

Hey @wongpang827 thanks for using Zoom.

You can skip this by calling the showJoinAudioFunction function.

ZoomMtg.showJoinAudioFunction({
	show: false
 });

“Show/Hide join audio function”

Put this function inside of the ZoomMtg.join success callback.

Docs here: https://zoom.github.io/sample-app-web/ZoomMtg.html#showJoinAudioFunction

You can also configure more options on ZoomMtg.init, https://zoom.github.io/sample-app-web/ZoomMtg.html#init

Let me know if this helps!

Thanks,
Tommy

2 Likes

Hi @tommy,

I have tried the showJoinAudioFunction to hide the panel, but there will be no audio after joining the meeting. Any other option to join audio by computer automatically without user interaction?

Thanks,
wongpang827

Hey @wongpang827,

As of now we do not have that feature on the Web SDK.

Although, as a work around, you could use the Join Meeting via Web Client URL, and pass in the prefer=1 query param to automatically join a meeting with computer audio. If you want to also pass in a default name for the user joining, use the un=base64EncodeName query param.

Here is an example:

https://zoom.us/wc/{{ MeetingID }}/join?prefer=1&un=dG9tbXk=

You can then embed this in an iFrame on your site to mirror the Web SDK functionality:

<iframe src="https://zoom.us/wc/{{ MeetingID }}/join?prefer=1&un=dG9tbXk=" width="1000" height="500" sandbox="allow-same-origin allow-forms allow-scripts" allow="microphone; camera"></iframe>

Here is a demo of how it looks:

Let me know if this helps!

Thanks,
Tommy

One work around I have found (a bit of a hack) is to put this in after the success call on ZoomMtg.join

setTimeout(function () {
var startButton = document.getElementById(“pc-join”);
startButton.click();
}, 3000);

I know its not ideal but it automatically clicks the join button for you.

Thanks for posting this @rory.street!

-Tommy

hi rory,

do you have audio after this automatic pc-join - click?

thx
hari

found the problem: i set the timeoutfunction with the $(document.querySelector("#pc-join")).click();
inside the ZoomMtg.join - success-callback - which is not working

installing the timeoutfunction in my ‘main’ js routine - directly after calling zoom-init - works fine, i.e. audio is working

FYI

Hey @harald.glanzer,

Happy to hear it’s working! :slight_smile:

Let us know if you have any other questions!

Thanks,
Tommy

@tommy: nevertheless, we would really appreciate if your SDK would support this ‘join by audio’.

with this actual hack ($(document.querySelector("#pc-join")).click():wink: i have to wait about 10 seconds after joining a room until i can ‘join audio’ via JS. if i simulate this click earlier, i wont have audio again

thx
hari

Hey @harald.glanzer,

We will add this as a feature request and work on implementing it in a future release! :slight_smile:

Thanks,
Tommy

Hi, I would also appreciate the possibility to join audio computer automatically, without any user interaction. Any preview on when this feature will be available?
Thanks,
Alessandro

1 Like

Hey @alessandro.feliziani,

Most likely Q2 when our fully customizable Web SDK is released.

Thanks,
Tommy

Hello Tommy when I am trying to ‘Join Audio by Computer’ from Mobile browser the button is not working. Can you help ?

Also any updates on automatically joining computer audio will highly appreciated

Hey @vijetha, thanks for posting and using Zoom!

May I ask what browser and device you are using? Screenshots would also be helpful.

Thanks,
Tommy

@tommy can you help, this is the screenshot. I am trying to integrate this into another page that is a Vue app SPA.

with this method, it’s just hiding the icon but not able to switch on the audio.

Hey @vijetha,

Can you please try serving your website over https.

That should fix the issue:

Thanks,
Tommy

Thanks Tommy. Another quick question I am not able to find an API to Start the Zoom meeting ( Already Created) from my Application . Any help ?