Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

NotReadableError: Could not start video source — why is the camera unavailable?

Illustration without a description Illustration without a description

The browser had a video source to try but could not start it. Another app may hold the device, the driver may have failed or system privacy settings may block access even after the page receives permission. Check the device outside the failing page as well.

 

Close competing apps and verify the operating system’s camera setting. Retry once the device is released. If the same failure happens on other sites or with another browser, inspect system or driver logs before changing the application’s constraints.

 

Stop the media tracks when a preview closes so the next request can acquire the device. Check whether your own page stops unused tracks when closing a preview. A later attempt may behave differently after the previous user of the device has released it.

 

const stream = await navigator.mediaDevices.getUserMedia({ video: true }); const track = stream.getVideoTracks()[0]; console.log(track.readyState); // Release the camera when no longer needed: stream.getTracks().forEach(t => t.stop());

 

Close other camera apps, retry the same device and compare it with a second camera before changing the request.