Webcam in Browser - Specify device

Hey Kirupa et al,
I found your code and tutorial super useful taking a Camlink 4K to use within a browser but I’m wondering if there is a way to specify a specific device within the js so that it does not revert to a different capture device. FYI: I only know basic HTML and CSS but I can google the crap out of anything.

Thanks in advance!!!

Hi @Michael_Herbert - welcome to the forums! This link may be helpful: Choosing cameras in JavaScript with the mediaDevices API

The live demo is here: Camera selection

I have it in my to-do list to update my current webcam article with more advanced scenarios such as this, so you asking about it reminds me to get on that soon haha.

If you have any issues with that script, please reply back and we’ll figure out what is going on.

Cheers,
Kirupa :slight_smile: