namkazt / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

AForge.Net VideoCaptureDevice.VideoCapabilities doesn't work. #409

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Windows 2008/2012 Server with a USB Camera.
2.Visual Studio 2010, using AForge.Video,using Aforge.Video.DirectShow.
3.Code below:

private vode Form_Load(object sender, EventArgs e)
{
 try
 {
 videoDevices= new FilterInfoCollection(FilterCategory.VideoInputDevice);
 foreach(FilterInfo device in videoDevices)
 {
 repositoryItemComboBox.Items.Add(device.Name);
 }
 CameraConn();
 ......
 }
}

private void CameraConn()
{
 if(videoDvices == null) return;
 VideoCaptureDevice videoSource = new VideoCaptureDevice(videoDevices[SelectedIndex].MonikerString);
videoCapabilities = videoSource.VideoCapabilities;
 ...... 
}
4.videoCapabilities = videoSource.VideoCapabilities;
the videoCapabilities is empty!!!

What is the expected output? What do you see instead?
the videoCapabilities SHOULD BE AN ARRAY.

What version of the product are you using?
AForge.NET Version is 2.2.5.

Please provide any additional information below.

Original issue reported on code.google.com by s1401150...@gmail.com on 30 Jun 2015 at 2:36