Пример #1
0
        void DiscoverUsbDevices()
        {
            var webCameras = WebCamera.GetDevices();

            foreach (var camera in webCameras)
            {
                var deviceInfo = new CameraDeviceInfo {
                    WebCameraInfo = camera
                };
                AddDeviceToList(deviceInfo);
            }
        }