Answer the question
In order to leave comments, you need to log in
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
. 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);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question