Zoom Developer Forum

How to determine if audio is connected on the Zoom Web SDK?

Amanda Zhu

December 10, 2023

Question

People commonly ask on the Zoom Developer Forum:

Is there any method in the Zoom Web SDK to ensure that audio is connected? Is there any method to connect audio automatically?

Answer

Typically when you’re building a Zoom bot with the Zoom Web SDK, you’ll run into an issue where the audio is not connected.

This is an issue we’ve encountered ourselves as we use the Web SDK extensively to power our bots.

There isn’t a way to ensure the audio is connected through a regular SDK API, however it is possible to check the audio connection status by inspecting the DOM. The element names in the Zoom bottom-bar will change when the audio is connected, and it’s possible to detect if the audio is connected by inspecting that.

If you want to automatically connect audio, there are two options:

  1. You can rely on the DOM again, and click the relevant buttons if you detect the audio is not connected.
  2. It’s possible to set some internal configuration parameters in the Zoom Web SDK to have it automatically join audio when let in to the call, however this is not officially supported and requires more maintenance work as the patched code must be edited whenever you update the SDK version.

Another option is Recall.ai . It’s a simple 3rd party API for meeting bots to get the raw audio/video from meetings + output video/audio without you needing to spend months to build, scale and maintain these bots. It also works across Google Meet, Microsoft Teams, and other meeting platforms.

Zoom Developer Forum Examples

Some examples of this question are: