MediaCapture.PrepareLowLagRecordToStreamAsync 方法

定义

使用指定的随机访问流来存储录制,初始化低延迟录制。 此方法提供用于管理录制的 LowLagMediaRecording 对象。

public:
 virtual IAsyncOperation<LowLagMediaRecording ^> ^ PrepareLowLagRecordToStreamAsync(MediaEncodingProfile ^ encodingProfile, IRandomAccessStream ^ stream) = PrepareLowLagRecordToStreamAsync;
IAsyncOperation<LowLagMediaRecording> PrepareLowLagRecordToStreamAsync(MediaEncodingProfile const& encodingProfile, IRandomAccessStream const& stream);
public IAsyncOperation<LowLagMediaRecording> PrepareLowLagRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream);
function prepareLowLagRecordToStreamAsync(encodingProfile, stream)
Public Function PrepareLowLagRecordToStreamAsync (encodingProfile As MediaEncodingProfile, stream As IRandomAccessStream) As IAsyncOperation(Of LowLagMediaRecording)

参数

encodingProfile
MediaEncodingProfile

录制的编码配置文件。

stream
IRandomAccessStream

写入图像数据的流。

返回

此方法完成后,将返回 LowLagMediaRecording 对象,该对象可用于启动照片捕获。

Windows 要求

应用功能
backgroundMediaRecording

适用于