Share via


Access the webcam using Windows API

Question

Wednesday, November 19, 2014 2:03 AM

Hi how do I access and control a webcam using Windows API? Is there any framework in Windows API to let me do this?

For example, I want to create a desktop app that previews the webcam.

All replies (1)

Wednesday, November 19, 2014 9:51 AM âś…Answered | 1 vote

Hi Raymart,

The Microsoft DirectShow application programming interface (API) is a media-streaming architecture for Microsoft Windows. Using DirectShow, your applications can perform high-quality video and audio playback or capture.

Please have a look at the DirectShow sample AmCap.

Sample

It will help you to implement this.

This sample will come as part of Windows SDK 

From MSDN : This sample is installed under the following path: [SDK Root]\Samples\Multimedia\DirectShow\Capture\AmCap.

Thanks,
Bhash