# Camera/Microphone fails to start or takes too long to initialize

**URL:** <https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040>\
**Category:** Web\
**Created:** [July 10, 2025, 3:32am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040 "2025-07-10T03:32:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [July 10, 2025, 3:32am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040/1 "2025-07-10T03:32:22Z")

</div>

**Description**  
We’re experiencing issues where some users are unable to successfully start their camera and microphone using the Video SDK. In some cases, users report significantly delayed camera/microphone activation, while in others, the camera/microphone fails to start entirely.

Here is `sessionIds` related to the issue:

```auto
Rj6yFdiuQUOMf0/FU9OvGw==
3NojTehpTQ60nFnYHdGVhg 
ouDpy1//TO2D++cXg2jX/Q==

```

**Which Web Video SDK version?**  
2.1.0

**Video SDK Code Snippets**

```auto
      let videoOptions = {
        cameraId: cameraId,
        originalRatio: window.isMobile
      };

      if (state.mediaStream.isSupportVirtualBackground() && virtualBackground) {
        videoOptions.virtualBackground = { imageUrl: virtualBackground };
      }
      await state.mediaStream.startVideo(videoOptions);

```

```auto
      if (speakerOnly) {
        await state.mediaStream.startAudio({ speakerOnly: true });
      } else {
        await state.mediaStream.startAudio({ mute: mute });
      }

```

**Device (please complete the following information):**

- OS: Window
- Browser: Edge
- Browser Version: 138

---

<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 11, 2025, 2:05am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040/2 "2025-07-11T02:05:43Z")

</div>

Hey @lmtruong1512

> Rj6yFdiuQUOMf0/FU9OvGw==  
> 3NojTehpTQ60nFnYHdGVhg==  
> ouDpy1//TO2D++cXg2jX/Q==

After analysis, this is a known issue. In edge cases, it can cause media initialization to fail, resulting in audio and video not starting properly. You can upgrade to version 2.2.0, where we’ve fixed this issue.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [July 11, 2025, 3:09am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040/3 "2025-07-11T03:09:16Z")

</div>

Hi @vic.yang ,  
Could you let us know the conditions under which this bug occurs? We’ve noticed that the frequency of this issue has increased recently, but we’re not sure why.

Recently, we made the following changes:

- Switched from canvas rendering to video-player rendering
- Enabled video WebRTC for headless Chrome browsers (This might be unrelated, but could it affect regular users who are not using headless browsers?)

Thank you for your support!

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [July 14, 2025, 2:40am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040/4 "2025-07-14T02:40:04Z")

</div>

@vic.yang  
If we set a timeout when starting the camera and microphone, and automatically retry if the startup hasn’t succeeded within that time, would this temporarily help mitigate the slow CAM/MIC startup issue?

If so, what timeout duration would you recommend for the camera and microphone?

Alternatively, is there another workaround you’d suggest for this problem?

---

<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, 6:42am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040/5 "2025-07-14T06:42:06Z")

</div>

Hi @lmtruong1512

Regarding the timing of the retry, I’m not sure how you’re detecting that the camera and microphone initialization has failed. Since startup times vary across different devices, it’s difficult to define a consistent timeout duration.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [July 14, 2025, 7:11am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040/6 "2025-07-14T07:11:13Z")

</div>

Hi @vic.yang,  
We don’t determine whether the camera and microphone initialization failed — instead, whenever starting the camera or microphone takes longer than the timeout duration (we’re currently setting it to around 4–5 seconds), we simply restart the process. (We try starting the cam/mic again)  
Would this approach have any side effects or potentially affect normal functionality?

Thank you for your time and support!

---

<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:29am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040/7 "2025-07-14T07:29:02Z")

</div>

Hi @lmtruong1512

It seems to be the same issue. I’ve replied in another thread — I’ll include the link here for reference.

> [@Microphone initialization takes too long — retry logic and timeout handling advice](https://devforum.zoom.us/t/microphone-initialization-takes-too-long-retry-logic-and-timeout-handling-advice/135180/4):
>
> 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 …

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 14, 2026, 7:29am UTC](https://devforum.zoom.us/t/camera-microphone-fails-to-start-or-takes-too-long-to-initialize/135040/8 "2026-07-14T07:29:16Z")

</div>

Closed on July 14, 2026, 7:29am UTC

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