2013-10-18 85 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... 
    } 
相關問題