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

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)

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

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!

@vic.yang Check for me, please!

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

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

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