1 | initial version |
it works like this:
there is a list of devices, populated from your os, and invisible to you (sad as it is) , and your webcams appear there in the order you plugged them in.
so, if you're e.g on a laptop with a builtin camera, that will be id 0, if you plug in an additional one, that's id 1.
note, that in theory, you could also try -1 for id, which will fall back from default directshow code to arcane VFW(which is problematic on later win versions), and give you a box to choose from available devices.