MediaCapture.PauseRecordAsync(MediaCapturePauseBehavior) 方法

定义

暂停正在进行的记录操作。

public:
 virtual IAsyncAction ^ PauseRecordAsync(MediaCapturePauseBehavior behavior) = PauseRecordAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction PauseRecordAsync(MediaCapturePauseBehavior const& behavior);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction PauseRecordAsync(MediaCapturePauseBehavior behavior);
function pauseRecordAsync(behavior)
Public Function PauseRecordAsync (behavior As MediaCapturePauseBehavior) As IAsyncAction

参数

behavior
MediaCapturePauseBehavior

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

返回

异步操作。

属性

Windows 要求

应用功能
backgroundMediaRecording

注解

通过调用 ResumeRecordAsync 恢复录制。

适用于

另请参阅