Dela via


MediaCapture.PauseRecordWithResultAsync(MediaCapturePauseBehavior) Method

Definition

Pauses an ongoing media record operation and provides a MediaCapturePauseResult that can be used to help the user align the camera with the last captured frame when resuming recording.

public:
 virtual IAsyncOperation<MediaCapturePauseResult ^> ^ PauseRecordWithResultAsync(MediaCapturePauseBehavior behavior) = PauseRecordWithResultAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<MediaCapturePauseResult> PauseRecordWithResultAsync(MediaCapturePauseBehavior const& behavior);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<MediaCapturePauseResult> PauseRecordWithResultAsync(MediaCapturePauseBehavior behavior);
function pauseRecordWithResultAsync(behavior)
Public Function PauseRecordWithResultAsync (behavior As MediaCapturePauseBehavior) As IAsyncOperation(Of MediaCapturePauseResult)

Parameters

behavior
MediaCapturePauseBehavior

A value indicating whether the media capture hardware resources should be preserved or released while recording is paused.

Returns

An asynchronous action that returns a MediaCapturePauseResult upon completion.

Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
backgroundMediaRecording

Applies to