/// <summary> Collection of available video capture devices. </summary> public void SetCustomFilterCollection(Guid DriverCLSID) { _filterCollection = new FilterCollection(DriverCLSID); }
void buscaVideoDevices() { try { videoDevices = new Filters().VideoInputDevices; } catch (Exception) { } if (videoDevices!=null&& videoDevices.Count > 0) { comboBoxVideoDevice.Items.Clear(); int _selected_index = 0; for (int i = 0; i < videoDevices.Count; i++) { comboBoxVideoDevice.Items.Add(videoDevices[i].Name); if (videoDevices[i].Name.Equals(me.videoCaptureStr)) _selected_index = i; } comboBoxVideoDevice.SelectedIndex = _selected_index; videoDevices.Clear(); } }