NotFoundError: Requested device not found — why can’t getUserMedia find my camera?

The browser could not find a device that meets the request. A camera or microphone may be unplugged, disabled or absent. If the app saved a specific deviceId, check whether that ID still appears in the device list after permission is granted.
Try basic audio or video constraints first to see whether a suitable device is available at all. Then offer the user the devices that are actually present. Handle a device that disappears while the page is open by allowing the user to make a fresh selection.
A basic stream request can show which camera the browser selects without a saved device ID. Compare that result with the failing request. If the basic request works, revisit the saved selection before asking the user to troubleshoot their hardware.
const stream = await navigator.mediaDevices.getUserMedia({ video: true }); console.log(stream.getVideoTracks().map(track => track.label)); stream.getTracks().forEach(track => track.stop());
After permission is granted, compare the available device list with the saved deviceId and test a basic video request.