zoom / videosdk-ui-toolkit-web

The Zoom Video SDK UI toolkit is a prebuilt video chat user interface powered by the Zoom Video SDK.
https://www.npmjs.com/package/@zoom/videosdk-ui-toolkit
Other
10 stars 8 forks source link

Error when No Video Input Device Attached: TypeError: Cannot read properties of undefined (reading 'deviceId') #31

Open sahil2401 opened 1 month ago

sahil2401 commented 1 month ago

I encountered an issue when trying to use the Zoom Video SDK UI Toolkit on a system that has no video input device attached. Specifically, when attempting to enable the "preview" feature, the following error occurs:

TypeError: Cannot read properties of undefined (reading 'deviceId')

Steps to Reproduce: Run the application on a system without any video input devices attached. Attempt to join a session with the "preview" feature enabled.

Expected Behavior: The application should gracefully handle the absence of video input devices without throwing an error, and the user should still be able to join the session.

Actual Behavior: The application throws a TypeError, and the session join functionality fails.

Thank you for your attention to this issue!

Screenshot 2024-09-18 at 4 45 12 PM Screenshot 2024-09-18 at 4 45 27 PM

tommygaessler commented 1 month ago

Hey @sahil2401 , thank you for reporting this bug. We will fix it in the next release.

In the meantime, can you please share the use case for using a device with no video camera? It will help us understand and design better for this use case.

sahil2401 commented 1 month ago

sure, I am using a Mac Mini, which doesn't have a built-in camera, so I use an external webcam for testing purposes. However, if no camera is attached, I encounter an error. It would be helpful to consider the use case where users might not have a video camera connected to their device. This can assist us in designing better solutions for such scenarios.

tommygaessler commented 1 month ago

Agree, we will include this fix in the next release, thank you for sharing the use case!