Preferred Method to Access C # Webcam in Windows Vista / 7

I found a lot of posts discussing WIA, the Windows Portable Devices API, and DirectShow (and giving sample code) for accessing a webcam from C #, but when you examine each method, you seem to come across links that are “old” methods.

So, the question is, when starting up anything earlier than in Windows Vista, what is the “preferred” method for accessing a webcam from C #?

Thanks,

John.

+7
source share
1 answer

I think you are looking for Windows Media Fundation . Extracted from MSDN:

The Microsoft Media Foundation was introduced in Windows Vista as a replacement for DirectShow. Of course, DirectShow is still supported on Windows 7, but developers are encouraged to use the Media Foundation in their new digital media applications.

+2
source

All Articles