MediaCapture.PrepareLowLagRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) MediaCapture.PrepareLowLagRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) MediaCapture.PrepareLowLagRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) MediaCapture.PrepareLowLagRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) MediaCapture.PrepareLowLagRecordToStreamAsync(MediaEncodingProfile, IRandomAccessStream) Method

Definition

Initializes the low lag recording using the specified random-access stream to store the recording. This method provides the LowLagMediaRecording object used to managed the recording.

public : IAsyncOperation<LowLagMediaRecording> PrepareLowLagRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream)
IAsyncOperation<LowLagMediaRecording> PrepareLowLagRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream) const;
public IAsyncOperation<LowLagMediaRecording> PrepareLowLagRecordToStreamAsync(MediaEncodingProfile encodingProfile, IRandomAccessStream stream)
Public Function PrepareLowLagRecordToStreamAsync(encodingProfile As MediaEncodingProfile, stream As IRandomAccessStream) As IAsyncOperation(Of LowLagMediaRecording)
Windows.Media.Capture.MediaCapture.prepareLowLagRecordToStreamAsync(encodingProfile, stream).done( /* Your success and error handlers */ );

Parameters

encodingProfile
MediaEncodingProfile MediaEncodingProfile MediaEncodingProfile

The encoding profile for the recording.

stream
IRandomAccessStream IRandomAccessStream IRandomAccessStream

The stream where the image data is written.

Returns

When this method completes, a LowLagMediaRecording object is returned which can be used to start the photo capture.

Additional features and requirements

Capabilities
backgroundMediaRecording