A
A
Alexey2015-03-22 15:43:50
Windows
Alexey, 2015-03-22 15:43:50

How to get a list of connected webcams?

You need to get a list of devices connected to the computer that can capture video, be it webcams, TV tuners, etc., as, for example, the VLC player does
6d2e02cc67af43ccbc91296a6ea3a89c.png
. I tried to make various WMI queries, but alas, my knowledge is not enough

var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}");
Device = new Enumerator(wmi.InstancesOf("Win32_PnPSignedDriver"));
for (; !Device.atEnd(); Device.moveNext()){
   	var I = Device.item();
   	WScript.Echo(I.Manufacturer+ " "+I.Product);
}

Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question