A collection of Filter objects (DirectShow filters). This is used by the Capture class to provide lists of capture devices and compression filters. This class cannot be created directly.
Inheritance: System.Collections.CollectionBase
Exemple #1
0
 /// <summary> Collection of available video capture devices. </summary>
 public void SetCustomFilterCollection(Guid DriverCLSID)
 {
     _filterCollection = new FilterCollection(DriverCLSID);
 }
Exemple #2
0
        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();
            }
        }