Please help, it is not connected to the camera in my project, I connect it

Please help, it is not connected to the camera in my project, I connect it as in the example and get an error.

My error
app-media-image-capture.js?b2c1:370 Uncaught (in promise) Error: ImageCapture instance not ready.

run with Spring-Boot