How to determine if audio is connected or not from SDK methods?

Is there any method in the web SDK to ensure that audio is connected?

Also, Is there any method to connect audio automatically?

I read some previous communication posts where it was stated that this feature might be added.

@bharat.bhadresha, are you running into an issue where you’re building a Zoom bot, and sometimes the audio is not connected?

If so, this is an issue we’ve encountered before 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 It’s a simple 3rd party API that lets you use 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.
Let me know if you have any questions!

Thank you @amanda-recallai

Will a mutation observer help in detection if audio is connected or not?

Also, Do you have any script which can be used for this detection?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.