January 09, 2012

Learn how to use the device camera to record video in your own application. This sample demonstrates video preview, recording, and playback. It uses the FileSink class to write video to isolated storage, from which it can be played afterward. For detailed information about how this sample works, see How to: Record Video in a Camera Application for Windows Phone.

You need to install Windows Phone SDK 7.1 to run this sample. To get started, go to App Hub.

To run the sample on the device

  1. Double-click VideoRecorderSample.sln to open the solution.

  2. Press F5 to start debugging the application.

  3. When the application launches on the device, the UI provides the following Application Bar buttons for recording and playing video:

    • Record: Starts video recording.

    • Stop: Stops video recording or video playback, depending on the state of the application.

    • Play: Plays the recorded video. You must record a video before this button is available.

    • Pause: Pauses playback. This button is not available during preview or recording.