MediaCapture.AddVideoEffectAsync(IVideoEffectDefinition, MediaStreamType) 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 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

IAsyncOperation<IMediaExtension>

An asynchronous operation that returns an IMediaExtension upon successful completion.

Windows 10 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