tshino/softcam

Add hardware ID into device info?

Growik opened this issue · 2 comments

Growik commented

Heyy, wanted to ask, if it's possible to add HW camera ID into this camera. I mean that ID inside brackets.. As you can see, it's not part of camera name, but it's being printed with device.label

real_cam

Thanks in advance!

tshino commented

Thank you for asking.

Did you get the screenshot by running navigator.mediaDevices.enumerateDevices()?
https://developer.mozilla.org/ja/docs/Web/API/MediaDevices/enumerateDevices

I got empty strings for a videoinput id and even the label is empty.

So far, I have no idea about this API and how softcam can affect it.

Growik commented

Yes, through navigator.mediaDevices.enumerateDevices().

You have to first give permissions to use camera, then run that command.

For example go to https://webcamtests.com test cam, give cam permissions and then navigator.mediaDevices.enumerateDevices() will print you devices correctly.

Problem is, that many websites detect that its virtual camera because of that HW ID, which is missing when softcam is used.