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.
| Class | Description |
|---|---|
| CameraCaptureUI | Captures a single photo or video from an attached camera. |
| 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. |
| MediaCapture | Captures photos, audio recordings and videos. |
| MediaCaptureFailedEventArgs | Provides data for the MediaCapture.Failed event. |
| MediaCaptureInitializationSettings | Contains initialization settings for the MediaCapture object. |
| MediaCaptureSettings | Contains read-only configuration settings for the MediaCapture object. |
Delegates
The Windows.Media.Capture namespace has these delegates.
| Delegate | Description |
|---|---|
| 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.
| Enumeration | Description |
|---|---|
| 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. |
| 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 |
|
Namespace |
|
|
Metadata |
|
|
Capabilities |
|
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
Build date: 12/4/2012