Delen via


Windows.Media.Capture Namespace

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

Classes

AdvancedCapturedPhoto

Represents a photo captured using system-provided computational photography techniques provided by the AdvancedPhotoCapture class.

AdvancedPhotoCapture

Provides methods for capturing photos using system-provided computational photography techniques.

AppBroadcastBackgroundService

Provides an interface between the broadcasting UWP app and the system-hosted broadcast service. This class provides access to objects that facilitate broadcast service authentication, test the bandwidth capabilities of the device's internet to the broadcasting provider service, and allow your task to acquire captured audio and video frames so that they can be sent to the broadcast provider service.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastBackgroundServiceSignInInfo

Represents the sign-in information for the app broadcast background service.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastBackgroundServiceStreamInfo

Manages the stream state of the app broadcast background service.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastCameraCaptureStateChangedEventArgs

Provides data for the AppBroadcast.CameraCaptureStateChanged event.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastGlobalSettings

Specifies global broadcasting settings that persist across all broadcasting UWP apps.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastHeartbeatRequestedEventArgs

Provides data for the AppBroadcastBackgroundService.HeartbeatRequested event which is raised by the system periodically to confirm that the broadcasting background task is currently active.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastManager

Provides access to global broadcast settings for the current device and broadcast provider settings.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastMicrophoneCaptureStateChangedEventArgs

Provides data for the AppBroadcastState.MicrophoneCaptureStateChanged event.

AppBroadcastPlugIn

Provides information about the app broadcast plugin.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastPlugInManager

Manages app broadcast plugins.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastPlugInStateChangedEventArgs

Provides data for the AppBroadcastState.PlugInStateChanged event.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastPreview

Provides status information and access to the app broadcast preview.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastPreviewStateChangedEventArgs

Provides data for the AppBroadcastPreview.PreviewStateChanged event.

AppBroadcastPreviewStreamReader

Provides information about and access to the app broadcast preview stream.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastPreviewStreamVideoFrame

Represents a video frame from the app broadcast preview stream.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastPreviewStreamVideoHeader

Represents metadata about an app broadcast preview stream video frame.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastProviderSettings

Provides access to the settings of the remote broadcast provider service. These settings can be viewed and changed by the broadcast provider.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastServices

Manages the state of app broadcasts.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastSignInStateChangedEventArgs

Provides data for the AppBroadcastBackgroundServiceSignInInfo.SignInStateChanged event.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastState

Represents and manages the state of an app broadcast.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastStreamAudioFrame

Represents a frame of audio samples in a broadcast stream.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastStreamAudioHeader

Provides metadata about a broadcast audio frame.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastStreamReader

Provides methods and events for obtaining audio and video frames from an app broadcast stream.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastStreamStateChangedEventArgs

Provides data for the AppBroadcastState.StreamStateChanged event.

AppBroadcastStreamVideoFrame

Represents a video frame in a broadcast stream.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastStreamVideoHeader

Provides metadata about a broadcast video frame.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastTriggerDetails

Provides details associated with a broadcast app background task.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastViewerCountChangedEventArgs

Provides data for the AppBroadcastViewerCountChanged event.

AppCapture

Provides information about the app capture feature.

AppCaptureAlternateShortcutKeys

Defines alternate shortcut keys for app capture.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

AppCaptureDurationGeneratedEventArgs

Provides data for the AppCaptureRecordOperation.DurationGenerated event.

AppCaptureFileGeneratedEventArgs

Provides data for the AppCaptureRecordOperation.FileGenerated event.

AppCaptureManager

Provides access to app capture settings.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

AppCaptureMetadataWriter

Enables an app to store metadata that the system will insert into captured video files or broadcast streams of app content.

AppCaptureMicrophoneCaptureStateChangedEventArgs

Provides data for the AppCaptureState.MicrophoneCaptureStateChanged event.

AppCaptureRecordingStateChangedEventArgs

Provides data for the AppCaptureRecordOperation.StateChanged event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

AppCaptureRecordOperation

Represents an app capture record operation.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

AppCaptureServices

Manages the state of app captures.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

AppCaptureSettings

Represents app capture settings.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

AppCaptureState

Represents the state of app capture.

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 with CameraCaptureUI. The settings include aspect ratio, image size, format, resolution, and whether or not cropping is allowed by the user interface (UI).

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.

GameBarServices

Manages the state of the Game Bar.

GameBarServicesCommandEventArgs

Provides data for the GameBarServices.CommandReceived event.

GameBarServicesManager

Manages the Game Bar services.

GameBarServicesManagerGameBarServicesCreatedEventArgs

Provides data for the GameBarServicesManager.GameBarServicesCreated event.

GameBarServicesTargetInfo

Provides metadata about a Game Bar services target.

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.

MediaCaptureDeviceExclusiveControlStatusChangedEventArgs

Provides data for the MediaCapture.CaptureDeviceExclusiveControlStatusChanged event.

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.

MediaCapturePauseResult

Provides the last frame captured and the recorded duration of a media capture operation that has been paused.

MediaCaptureRelativePanelWatcher

Monitors the panel associated with a DisplayRegion, so that the app receives notifications when the relative location of the panel changes.

MediaCaptureSettings

Contains read-only configuration settings for the MediaCapture object.

MediaCaptureStopResult

Provides the last frame captured and the recorded duration of a media capture operation that has been stopped.

MediaCaptureVideoProfile

Represents a video profile that indicates a configuration supported by the video capture device.

MediaCaptureVideoProfileMediaDescription

Represents a description of media that is supported by a video profile.

OptionalReferencePhotoCapturedEventArgs

Provides data for the AdvancedPhotoCapture.OptionalReferencePhotoCaptured event.

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.

VideoStreamConfiguration

Represents a set of input and output VideoEncodingProperties for a video stream

Structs

WhiteBalanceGain

Represents the red, green, and blue values of a white balance gain setting.

Enums

AppBroadcastCameraCaptureState

Specifies the state of app broadcast camera capture.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastCameraOverlayLocation

Specifies the location of the camera overlay within the broadcast video frame.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastCameraOverlaySize

Specifies the size of the camera overlay within the broadcast video frame.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastCaptureTargetType

Specifies the type of target being captured for app broadcast.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastExitBroadcastModeReason

Gets a value that specifies the reason that broadcast mode was exited.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastMicrophoneCaptureState

Specifies the state of app broadcast microphone capture.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastPlugInState

Specifies the current state of the broadcast background task.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastPreviewState

Specifies the state of the app broadcast preview.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastSignInResult

Specifies the result of a sign-in operation.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastSignInState

Specifies the current sign-in state for a broadcast app.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastStreamState

Specifies the state of an app broadcast stream.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastTerminationReason

Specifies the reason that an app broadcast was terminated.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

AppBroadcastVideoEncodingBitrateMode

Specifies the mode for setting the bitrate for broadcast video encoding.

AppBroadcastVideoEncodingResolutionMode

Specifies the mode for setting the resolution for broadcast video encoding.

AppCaptureHistoricalBufferLengthUnit

Specifies the units of the app capture historical buffer.

AppCaptureMetadataPriority

Specifies the relative importance of an app capture metadata item stored using AppCaptureMetadataWriter. When the storage space allotted for accumulated metadata is low, the system will use the priority and age of metadata items to determine the order in which metadata is purged to free storage space.

AppCaptureMicrophoneCaptureState

Specifies the state of microphone capture for app capture.

AppCaptureRecordingState

Specifies the state of an app capture recording.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

AppCaptureVideoEncodingBitrateMode

Specifies the app capture video encoding bitrate mode.

AppCaptureVideoEncodingFrameRateMode

Specifies the video encoding frame rate mode.

AppCaptureVideoEncodingResolutionMode

Specifies the app capture video encoding resolution mode.

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 photos captured with CameraCaptureUI.

CameraCaptureUIVideoFormat

Determines the format for saving captured videos.

ForegroundActivationArgument

Specifies the reason that an app broadcast plugin was activated in the foreground.

GameBarCommand

Specifies the set of Game Bar commands.

GameBarCommandOrigin

Specifies the origin of a Game Bar command.

GameBarServicesDisplayMode

Specifies the display mode for the Game Bar.

GameBarTargetCapturePolicy

Provides information around the allowable actions for this application.

KnownVideoProfile

Specifies the names of video recording profiles that are known by the system.

MediaCaptureDeviceExclusiveControlReleaseMode

Specifies the condition under which exclusive access to the camera is released.

MediaCaptureDeviceExclusiveControlStatus

Specifies the exclusive control status of the media capture device. Exclusive control is required to modify the settings of the capture device, but is not required to obtain media frames from the device.

MediaCaptureMemoryPreference

Specifies the preferred memory location for captured video frames.

MediaCaptureSharingMode

Specifies the media frame source sharing mode for a MediaCapture object.

MediaCaptureThermalStatus

Specifies the thermal status of a media capture device.

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.

Delegates

MediaCaptureFailedEventHandler

Represents the method that will handle the MediaCapture.Failed event.

RecordLimitationExceededEventHandler

Represents the method that will handle RecordLimitationExceeded and related events.

Remarks

To get started quickly adding photo, video, or audio capture to your app, see Basic photo, video, and audio capture with MediaCapture. To learn about the different media capture features you can use in your Universal Windows app, including how-to guidance and samples, see Camera.

See also