Skip to main content
LowLagMediaRecording class

Provides methods for taking a low lag media recording.

Syntax


/* For information about creating or accessing this object, see Remarks. */

public sealed class LowLagMediaRecording

Public NotInheritable Class LowLagMediaRecording

public ref class LowLagMediaRecording sealed 

Members

The LowLagMediaRecording class has these types of members:

Methods

The LowLagMediaRecording class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
FinishAsync Asynchronously releases the LowLagMediaRecording object and resources used by the media recording operation.
PauseAsync Pauses an ongoing low lag media record operation.
PauseWithResultAsync 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 Resumes a paused low lag recording operation.
StartAsync Asynchronously starts the low lag media recording.
StopAsync Asynchronously stops the low lag media recording.
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.

 

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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Standard)]
[ Threading(MTA)]
[ Version(0x06030000)]

See also

Object
Basic photo, video, and audio capture with MediaCapture
MediaControl.VideoDeviceController
PrepareLowLagRecordToStreamAsync
PrepareLowLagRecordToStorageFileAsync
PrepareLowLagRecordToCustomSinkAsync