MediaCapture.PauseRecordWithResultAsync(MediaCapturePauseBehavior) 方法

定义

暂停正在进行的媒体记录操作,并提供 MediaCapturePauseResult ,可帮助用户在恢复录制时将相机与最后一个捕获的帧对齐。

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)

参数

behavior
MediaCapturePauseBehavior

一个值,该值指示在暂停录制时是应保留还是释放媒体捕获硬件资源。

返回

一个异步操作,完成后返回 MediaCapturePauseResult

属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
应用功能
backgroundMediaRecording

适用于