Camera Capture Graph

Windows Mobile SupportedWindows Embedded CE Not Supported

8/28/2008

This code sample is named videocap. It demonstrates how to use the native Camera Capture API. The application allows you to take still pictures and video clips. It captures and encodes a still image into a JPEG file, and video in a WMV file.

Feature Area
Relevant APIs

ICaptureGraphBuilder2 interface

To run the code sample

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:

    C:\Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\CameraCapture

    Microsoft Visual Studio 2005 launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

Development Environments

SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK

Development Environment: Visual Studio 2005.

ActiveSync: VersionĀ 4.5.

Demonstrates

ExTAPIAsync demonstrates how to develop an application that is based on Extended TAPI asynchronous functionality.

Comments

You must have a camera-equipped Windows Mobile powered device with a video capture driver installed, to use this application.

The emulator ships with a null capture driver.

The video is saved to the mobile device's root folder with the default file name "video1.asf", and the still image is saved with the default file name "test.jpg".

See Also

Tasks

Camera Capture

Concepts

Code Samples for Windows Mobile

Other Resources

SHCameraCapture
SHCAMERACAPTURE (structure)
CAMERACAPTURE_VIDEOTYPES
CAMERACAPTURE_MODE
CAMERACAPTURE_STILLQUALITY