Microsoft DirectX 9.0

PlayCapMoniker Sample

Description

The PlayCapMoniker sample demonstrates how to build a video capture device using a device moniker. The application is a simple video capture device previewer. Unlike the AmCap Sample, it does not capture data to a file. Instead, it searches for the first available video capture device that is registered in the system, connects to it, and displays the video data in a small window. 

This sample differs from the PlayCap Sample because PlayCap builds the capture graph using the ICaptureGraphBuilder2 interface, whereas this sample finds the moniker of the capture device and uses the IFilterGraph2::AddSourceFilterForMoniker method to begin the graph-building process.

Path

Source: (SDK root)\Samples\C++\DirectShow\Capture\PlayCapMoniker