共用方式為


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

適用於