Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hardware ID into device info? #55

Open
Growik opened this issue Feb 16, 2024 · 2 comments
Open

Add hardware ID into device info? #55

Growik opened this issue Feb 16, 2024 · 2 comments

Comments

@Growik
Copy link

Growik commented Feb 16, 2024

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
Copy link
Owner

tshino commented Feb 16, 2024

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
Copy link
Author

Growik commented Feb 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants