Provides collections of devices and compression codecs installed on the system.
Esempio n. 1
0
        /// <summary>
        /// Loads the list of video devices.
        /// </summary>
        private bool LoadVideoDevices()
        {
            _filters = new Filters();

            //If no Video Input Devices Detected
            if (_filters.VideoInputDevices.Count == 0)
                return false;

            for (int i = 0; i < _filters.VideoInputDevices.Count; i++)
            {
                Dispatcher.Invoke(() =>
                {
                    VideoDevicesComboBox.Items.Add(_filters.VideoInputDevices[i].Name);
                });
            }

            return true;
        }
Esempio n. 2
0
        /// <summary>
        /// Loads the list of video devices.
        /// </summary>
        private List<string> LoadVideoDevices()
        {
            var devicesList = new List<string>();
            _filters = new Filters();

            for (int i = 0; i < _filters.VideoInputDevices.Count; i++)
            {
                devicesList.Add(_filters.VideoInputDevices[i].Name);
            }

            return devicesList;
        }