Camera Capture Graph
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
- Shell and User Interface Reference
- ICaptureGraphBuilder2 interface
Usage
To run the code sample
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 CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Cameracapture\``CameraCapture.sln
Microsoft Visual Studio 2005 launches and loads the solution.
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
Remarks
You must have a camera equipped Pocket PC or Smartphone 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".
Requirements
Pocket PC SDK: Windows Mobile 5.0 Pocket PC SDK.
Smartphone SDK: Windows Mobile 5.0 Smartphone SDK.
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.0.
See Also
Code Samples | SHCameraCapture | SHCAMERACAPTURE | CAMERACAPTURE_VIDEOTYPES | CAMERACAPTURE_MODE | CAMERACAPTURE_STILLQUALITY | Camera
Send Feedback on this topic to the authors