Closed MarcoWel closed 4 months ago
On a computer without cameras, the line const cameraDevices = useDeviceList(); causes an uncaught runtime error "Requested device not found". IMO this should just create an empty array [].
const cameraDevices = useDeviceList();
Please try this beta 2.0.0-beta.8. There are breaking changes for this beta release.
2.0.0-beta.8
This issue is fixed on new hook useDevices.
useDevices
On a computer without cameras, the line
const cameraDevices = useDeviceList();
causes an uncaught runtime error "Requested device not found". IMO this should just create an empty array [].