DEVICE ACCESS DENIED in JS

Greetings, help me solve the problem.

I use the usual JS on the client side and everything was fine, but recently some clients started getting an error in the “DEVICE_ACCESS_DENIED” browser. At the same time, when connected via the WEB COMPONENT, everything works fine. I tried various options for connecting the client via JS, but I just can’t get rid of this error.
Rechecked everything advised on a similar topic
WebRTC test the camera shows


Have you taken permission from browser. Because if disallow one time then chrome don’t pop up again

Chrome does not ask for anything, and besides, everything worked for this client before. Maybe something is in conflict at the USB level?

@Johnny
Oh I got it’s not getting video device which you want to access. It’s mean device is in use or you trying to access wrong device or not available .
I think you are using Js. So how you choose USB web cam ?

I did indefined and also manually set deviceId

I could only solve the problem by replacing the equipment

Any console errors in browser