LowLagMediaRecording LowLagMediaRecording LowLagMediaRecording LowLagMediaRecording LowLagMediaRecording Class

Definition

Provides methods for taking a low lag media recording.

public : sealed class LowLagMediaRecording : ILowLagMediaRecording, ILowLagMediaRecording2, ILowLagMediaRecording3
struct winrt::Windows::Media::Capture::LowLagMediaRecording : ILowLagMediaRecording, ILowLagMediaRecording2, ILowLagMediaRecording3
public sealed class LowLagMediaRecording : ILowLagMediaRecording, ILowLagMediaRecording2, ILowLagMediaRecording3
Public NotInheritable Class LowLagMediaRecording Implements ILowLagMediaRecording, ILowLagMediaRecording2, ILowLagMediaRecording3
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Use the following methods on the MediaCapture class to initialize the recording, which must be called before StartAsync: PrepareLowLagRecordToStreamAsync, PrepareLowLagRecordToStorageFileAsync, and PrepareLowLagRecordToCustomSinkAsync. 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, PrepareLowLagRecordToStorageFileAsync, or PrepareLowLagRecordToCustomSinkAsync 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

FinishAsync() FinishAsync() FinishAsync() FinishAsync() FinishAsync()

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

PauseAsync(MediaCapturePauseBehavior) PauseAsync(MediaCapturePauseBehavior) PauseAsync(MediaCapturePauseBehavior) PauseAsync(MediaCapturePauseBehavior) PauseAsync(MediaCapturePauseBehavior)

Pauses an ongoing low lag media record operation.

PauseWithResultAsync(MediaCapturePauseBehavior) PauseWithResultAsync(MediaCapturePauseBehavior) PauseWithResultAsync(MediaCapturePauseBehavior) PauseWithResultAsync(MediaCapturePauseBehavior) PauseWithResultAsync(MediaCapturePauseBehavior)

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.

ResumeAsync() ResumeAsync() ResumeAsync() ResumeAsync() ResumeAsync()

Resumes a paused low lag recording operation.

StartAsync() StartAsync() StartAsync() StartAsync() StartAsync()

Asynchronously starts the low lag media recording.

StopAsync() StopAsync() StopAsync() StopAsync() StopAsync()

Asynchronously stops the low lag media recording.

StopWithResultAsync() StopWithResultAsync() StopWithResultAsync() StopWithResultAsync() StopWithResultAsync()

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.

See Also