Capturing video for Windows Phone 8

Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 | Windows Phone OS 7.1

This section describes the APIs you can use to programmatically capture video on Windows Phone. It also lists some points to keep in mind when you use the emulator to develop your camera app.

This topic contains the following sections.

There are two sets of APIs your app can use to capture video.

Class

Description

Supported on Windows Phone OS 7.1

Supported on Windows Phone 8

CaptureSource and FileSink

Use these classes to record video.

green check markgreen check mark

AudioVideoCaptureDevice

Use this class for advanced video and audio capture, and to access the preview buffer.

red xgreen check mark

The System.Windows.Media.CaptureSource class, used in conjunction the FileSink class, give your app the ability to programmatically record video. For advanced video and encoding settings, the AudioVideoCaptureDevice class provides an extended set of capabilities and better performance. Use this class to control video properties such as encoding settings, torch power, system mute, and manual focus position.

The System.Windows.Media.CaptureSource class is available to apps written for Windows Phone OS 7.1 and Windows Phone 8. However, this class can only be used in managed code. For more info about using System.Windows.Media.CaptureSource, see the following topic:

The Windows.Phone.Media.Capture APIs are available only to apps written for Windows Phone 8. These APIs are projected into C#, Visual Basic, and C++ and are accompanied by interfaces that can be called from native code. For more info about these APIs, see the following topics:

When you use the emulator to develop a camera app, keep the following points in mind:

  • Some API calls may not work as expected on the emulator. Review the Windows Phone SDK release notes for the latest details.

  • The scene sent to the emulator camera is a box that floats around the borders of the viewfinder.

TipTip:

For the best development experience, we recommend that you develop your camera app on a Windows Phone 8 device.

Show:
© 2015 Microsoft