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:
Deny the permission to use the camera and join the meeting
When permission is granted again, retrieve the list of videoinputs
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)
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.
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.