LowLagMediaRecording LowLagMediaRecording LowLagMediaRecording LowLagMediaRecording Class

Provides methods for taking a low lag media recording.

Syntax

Declaration

public sealed class LowLagMediaRecordingpublic sealed class LowLagMediaRecordingPublic NotInheritable Class LowLagMediaRecording

Remarks

Use the following methods on the MediaCapture class to initialize the recording, which must be called before StartAsync(): PrepareLowLagRecordToStreamAsync(Windows.Media.MediaProperties.MediaEncodingProfile,Windows.Storage.Streams.IRandomAccessStream), PrepareLowLagRecordToStorageFileAsync(Windows.Media.MediaProperties.MediaEncodingProfile,Windows.Storage.IStorageFile), and PrepareLowLagRecordToCustomSinkAsync(Windows.Media.MediaProperties.MediaEncodingProfile,Windows.Media.IMediaExtension). These are asynchronous methods which return a LowLagMediaRecording object when they are finished.

StopAsync() stops the operation, which can be restarted with StartAsync().

FinishAsync() stops the media recording operation and releases the LowLagMediaRecording object and resources used by the media recording operation. If you want to restart the recording after calling FinishAsync(), you will need to call one of the PrepareLowLagRecord methods to initialize a new LowLagMediaRecording object.

If the media type is changed or an effect is added, you must call PrepareLowLagRecordToStreamAsync(Windows.Media.MediaProperties.MediaEncodingProfile,Windows.Storage.Streams.IRandomAccessStream), PrepareLowLagRecordToStorageFileAsync(Windows.Media.MediaProperties.MediaEncodingProfile,Windows.Storage.IStorageFile), or PrepareLowLagRecordToCustomSinkAsync(Windows.Media.MediaProperties.MediaEncodingProfile,Windows.Media.IMediaExtension) to create a new LowLagMediaRecording object.

For how-to guidance for using LowLagMediaCapture to capture video, see Basic photo, video, and audio capture with MediaCapture.

Methods summary

Asynchronously releases the LowLagMediaRecording object and resources used by the media recording operation.

Pauses an ongoing low lag media record operation.

Pauses an ongoing low lag media record operation and provides a MediaCapturePauseResult that can be used to help the user align the camera with the last captured frame when resuming recording.

Resumes a paused low lag recording operation.

Asynchronously starts the low lag media recording.

Asynchronously stops the low lag media recording.

Asynchronously stops the low lag media recording and provides a MediaCaptureStopResult that can be used to help the user align the camera with the last captured frame when restarting recording.

Methods

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Media.Capture.dll