# Microphone initialization takes too long — retry logic and timeout handling advice

**URL:** <https://devforum.zoom.us/t/microphone-initialization-takes-too-long-retry-logic-and-timeout-handling-advice/135180>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [July 14, 2025, 2:45am UTC](https://devforum.zoom.us/t/microphone-initialization-takes-too-long-retry-logic-and-timeout-handling-advice/135180 "2025-07-14T02:45:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [July 14, 2025, 7:26am UTC](https://devforum.zoom.us/t/microphone-initialization-takes-too-long-retry-logic-and-timeout-handling-advice/135180/4 "2025-07-14T07:26:55Z")

</div>

Hi @Thong1

> - Do you think it’s reasonable to apply a manual timeout of 5s to `startAudio()`/`startVideo()` to avoid long UI freezes?

It’s not reasonable — a 5-second timeout is inappropriate. As you mentioned, it could involve network connections, and even if you retry after a timeout, you’d still need to reconnect, which would take just as much time.

Since `startAudio`/`startVideo` are asynchronous methods, you can provide feedback to the user through the UI by indicating that audio/video is being started — for example, by showing a loading indicator or disabling the control area. You shouldn’t automatically retry in such a short time frame.

> - In case of overlapping calls (e.g., when a retry is triggered before the SDK call internally resolves), we’ve seen logs like `INVALID_OPERATION`. Is this harmful, or just a safe way the SDK rejects redundant calls?

Yes, we reject duplicate calls to prevent inconsistent states.

Thanks  
Vic

---

_[View the full topic](https://devforum.zoom.us/t/microphone-initialization-takes-too-long-retry-logic-and-timeout-handling-advice/135180)._
