Windows.Media.Capture namespace

Applies to Windows and Windows Phone

Provides classes for the capture of photos, audio recordings, and videos.

Members

The Windows.Media.Capture namespace has these types of members:

Classes

The Windows.Media.Capture namespace has these classes.

ClassDescription
CameraCaptureUI Provides a full window UI for capturing audio, video, and photos from a camera. As well as controls for trimming video, time delayed capture, and camera settings.
CameraCaptureUIPhotoCaptureSettings Provides settings for capturing photos.
CameraCaptureUIVideoCaptureSettings Provides settings for capturing videos. The settings include format, maximum resolution, maximum duration, and whether or not to allow trimming.
CameraOptionsUI Provides a method for displaying a UI, by which the UI contains options for the capture of photos, audio recordings and videos.
CapturedFrame Represents a captured video frame.
CapturedFrameControlValues Provides information about the capture device settings that were used for a frame in a variable photo sequence.
CapturedPhoto Represents a photo taken from a capture device such as a webcam attached.
LowLagMediaRecording Provides methods for taking a low lag media recording.
LowLagPhotoCapture Provides methods for taking a low shutter lag photo.
LowLagPhotoSequenceCapture Provides methods for taking a rapid sequence of low shutter lag photos.
MediaCapture Provides functionality for capturing photos, audio, and videos from a capture device, such as a webcam.
MediaCaptureFailedEventArgs Provides data for the MediaCapture.Failed event.
MediaCaptureFocusChangedEventArgs Provides data for the FocusChanged event.
MediaCaptureInitializationSettings Contains initialization settings for the MediaCapture object which are passed to the MediaCapture.InitializeAsync method.
MediaCaptureSettings Contains read-only configuration settings for the MediaCapture object.
PhotoCapturedEventArgs Provides data for the photo sequence PhotoCaptured event.
PhotoConfirmationCapturedEventArgs Provides data for the PhotoConfirmationCaptured event.
ScreenCapture Enables an app to capture audio and video of the contents being displayed on the device.
SourceSuspensionChangedEventArgs Provides information about a SourceSuspensionChanged event which is triggered when the capture of audio or video is suspended or resumed.

 

Delegates

The Windows.Media.Capture namespace has these delegates.

DelegateDescription
MediaCaptureFailedEventHandler Represents the method that will handle the MediaCapture.Failed event.
RecordLimitationExceededEventHandler Represents the method that will handle RecordLimitationExceeded and related events.

 

Enumerations

The Windows.Media.Capture namespace has these enumerations.

EnumerationDescription
CameraCaptureUIMaxPhotoResolution Determines the highest resolution the user can select for capturing photos.
CameraCaptureUIMaxVideoResolution Determines the highest resolution the user can select for capturing video.
CameraCaptureUIMode Determines whether the user interface for capturing from the attached camera allows capture of photos, videos, or both photos and videos.
CameraCaptureUIPhotoFormat Determines the format for storing captured photos.
CameraCaptureUIVideoFormat Determines the format for saving captured videos.
MediaCategory Defines values for types of media categories.
MediaStreamType Specifies a type of stream on a media capture device.
PhotoCaptureSource Specifies which stream on a video camera is used to capture photos.
PowerlineFrequency Specifies the local power line frequency.
StreamingCaptureMode Specifies the streaming mode for a media capture device.
VideoDeviceCharacteristic Indicates which video streams are independent of each other.
VideoRotation Specifies the rotation of the video stream.

 

Examples

See the Media capture sample for an example of using media capture.

If you’d like to try working with media capture and other key Windows 8 features, download the hands-on labs for Windows 8. These labs provide a modular, step-by-step introduction to creating a sample Windows Store app in the programming language of your choice (JavaScript and HTML or C# and XAML).

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.winmd

Capabilities

webcam
microphone

See also

Roadmaps
Adding multimedia to Windows Store apps using C++, C#, or Visual Basic
Adding multimedia to Windows Store apps using JavaScript
Samples
Media capture sample
Camera capture UI sample
Camera options UI sample
Device enumeration sample
Real-Time communication sample
Media extension sample
Hands-on labs for Windows 8
Other resources
Supported audio and video formats

 

 

Show:
© 2014 Microsoft