Share via


MediaCapture.AddVideoEffectAsync Method

Definition

Adds a video effect to the capture pipeline.

public:
 virtual IAsyncOperation<IMediaExtension ^> ^ AddVideoEffectAsync(IVideoEffectDefinition ^ definition, MediaStreamType mediaStreamType) = AddVideoEffectAsync;
IAsyncOperation<IMediaExtension> AddVideoEffectAsync(IVideoEffectDefinition const& definition, MediaStreamType const& mediaStreamType);
public IAsyncOperation<IMediaExtension> AddVideoEffectAsync(IVideoEffectDefinition definition, MediaStreamType mediaStreamType);
function addVideoEffectAsync(definition, mediaStreamType)
Public Function AddVideoEffectAsync (definition As IVideoEffectDefinition, mediaStreamType As MediaStreamType) As IAsyncOperation(Of IMediaExtension)

Parameters

definition
IVideoEffectDefinition

The object containing the definition of the effect to be added.

mediaStreamType
MediaStreamType

Specifies the streams to which the effect will be applied.

Returns

An asynchronous operation that returns an IMediaExtension upon successful completion.

Windows requirements

App capabilities
backgroundMediaRecording

Remarks

For how-to guidance on adding effects to the camera capture and preview streams, see Effects for video capture.

Applies to