# Error: Too many calls: the device is opening the camera now, cannot stop video capture when startVideo

**URL:** <https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [June 3, 2024, 8:50am UTC](https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178 "2024-06-03T08:50:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![namlv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namlv/32/51610_2.png) [@namlv](https://devforum.zoom.us/u/namlv)\
**Post date:** [June 3, 2024, 8:50am UTC](https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178/1 "2024-06-03T08:50:31Z")

</div>

**Description**  
I joined the meeting and had previously denied permission to use the camera. After gaining permission, I call startVideo but encountered errors

Even though startVideo failed, the tab still shows that I am using the camera.

**Browser Console Error**  
I received 2 errors when calling startVideo:

- startVideo encounters the error CAN\_NOT\_FIND\_CAMERA
- VideoSDK logs the error ‘Error: Too many calls: the device is opening the camera now, cannot stop video capture’

**Which Web Video SDK version?**  
1.11.0

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Deny the permission to use the camera and join the meeting
2. When permission is granted again, retrieve the list of videoinputs
3. Call the function startVideo

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

- Device: Macbook mini m1
- OS: macOS 14.3
- Browser: Chrome
- Browser Version 125.0.6422.113 (Official Build) (arm64)

---

<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:** [June 3, 2024, 9:36am UTC](https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178/2 "2024-06-03T09:36:03Z")

</div>

Hey @namlv

Thanks for your feedback.

> 1. When permission is granted again, retrieve the list of videoinputs

When you mention ‘permission granted,’ are you performing subsequent operations after refreshing the page?

Could you share the problematic session ID with us for troubleshooting purposes?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![namlv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namlv/32/51610_2.png) [@namlv](https://devforum.zoom.us/u/namlv)\
**Post date:** [June 4, 2024, 7:27am UTC](https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178/3 "2024-06-04T07:27:51Z")

</div>

> [@vic.yang](#):
>
> When you mention ‘permission granted,’ are you performing subsequent operations after refreshing the page?

After I granted camera access, I did not reload the page. After granting permission, I just retrieved the list of video inputs and started the video right afterward.

my session ID: UtMWgPRDQNWhfORAMb7c+w==

Check for me, please!

---

<div class="post-metadata">

**Author:** ![namlv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namlv/32/51610_2.png) [@namlv](https://devforum.zoom.us/u/namlv)\
**Post date:** [June 6, 2024, 3:10am UTC](https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178/5 "2024-06-06T03:10:14Z")

</div>

@vic.yang Check for me, please!

---

<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:** [June 14, 2024, 7:44am UTC](https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178/6 "2024-06-14T07:44:41Z")

</div>

Hey @namlv

Sorry for the late reply.

> - startVideo encounters the error CAN\_NOT\_FIND\_CAMERA

This error is caused by the inability to retrieve the camera list, leading to a mismatch in the `cameraID`. It could possibly be a lack of camera permission.

> - VideoSDK logs the error ‘Error: Too many calls: the device is opening the camera now, cannot stop video capture’

When video capture fails, we attempt to stop the capture process. This error is caused by a race condition and does not affect actual functionality. We will fix this error in the next version.

As a workaround, we recommend giving a prompt to refresh the page to ensure the Video SDK can get the camera permission.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![namlv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namlv/32/51610_2.png) [@namlv](https://devforum.zoom.us/u/namlv)\
**Post date:** [July 11, 2024, 6:43am UTC](https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178/7 "2024-07-11T06:43:54Z")

</div>

Thanks you! Please fix this issue as soon as impossible.

---

<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:** [August 10, 2024, 4:44pm UTC](https://devforum.zoom.us/t/error-too-many-calls-the-device-is-opening-the-camera-now-cannot-stop-video-capture-when-startvideo/111178/8 "2024-08-10T16:44:29Z")

</div>

Closed on August 10, 2024, 4:44pm UTC

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