2013-10-18 54 views

回答

2

我这样做过 - 使用http://directshownet.sourceforge.net/给你一个体面的.NET接口DirectShow的,那么你可以使用下面的代码:

DsDevice[] captureDevices; 

    // Get the set of directshow devices that are video inputs. 
    captureDevices = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice);  

    for (int idx = 0; idx < captureDevices.Length; idx++) 
    { 
    // Do something with the device here... 
    } 
相关问题