MediaCapture.AddVideoEffectAsync(IVideoEffectDefinition, MediaStreamType) MediaCapture.AddVideoEffectAsync(IVideoEffectDefinition, MediaStreamType) MediaCapture.AddVideoEffectAsync(IVideoEffectDefinition, MediaStreamType) MediaCapture.AddVideoEffectAsync(IVideoEffectDefinition, MediaStreamType) MediaCapture.AddVideoEffectAsync(IVideoEffectDefinition, MediaStreamType) Method

Definition

Adds a video effect to the capture pipeline.

public : IAsyncOperation<IMediaExtension> AddVideoEffectAsync(IVideoEffectDefinition definition, MediaStreamType mediaStreamType)
IAsyncOperation<IMediaExtension> AddVideoEffectAsync(IVideoEffectDefinition definition, MediaStreamType mediaStreamType) const;
public IAsyncOperation<IMediaExtension> AddVideoEffectAsync(IVideoEffectDefinition definition, MediaStreamType mediaStreamType)
Public Function AddVideoEffectAsync(definition As IVideoEffectDefinition, mediaStreamType As MediaStreamType) As IAsyncOperation(Of IMediaExtension)
Windows.Media.Capture.MediaCapture.addVideoEffectAsync(definition, mediaStreamType).done( /* Your success and error handlers */ );

Parameters

definition
IVideoEffectDefinition IVideoEffectDefinition IVideoEffectDefinition

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

mediaStreamType
MediaStreamType MediaStreamType MediaStreamType

Specifies the streams to which the effect will be applied.

Returns

An asynchronous operation that returns an IMediaExtension upon successful completion.

Additional features and requirements

Capabilities
backgroundMediaRecording

Remarks

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