Compartilhar via


MediaCapture.AddEffectAsync(MediaStreamType, String, IPropertySet) Método

Definição

Adiciona um efeito de áudio ou vídeo.

public:
 virtual IAsyncAction ^ AddEffectAsync(MediaStreamType mediaStreamType, Platform::String ^ effectActivationID, IPropertySet ^ effectSettings) = AddEffectAsync;
/// [Windows.Foundation.Metadata.Deprecated("AddEffectAsync might not be available in future versions of Windows. Starting with Windows Threshold, use AddAudioEffectAsync and AddVideoEffectAsync instead", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
IAsyncAction AddEffectAsync(MediaStreamType const& mediaStreamType, winrt::hstring const& effectActivationID, IPropertySet const& effectSettings);
/// [Windows.Foundation.Metadata.Deprecated("AddEffectAsync might not be available in future versions of Windows. Starting with Windows Threshold, use AddAudioEffectAsync and AddVideoEffectAsync instead", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
IAsyncAction AddEffectAsync(MediaStreamType const& mediaStreamType, winrt::hstring const& effectActivationID, IPropertySet const& effectSettings);
[Windows.Foundation.Metadata.Deprecated("AddEffectAsync might not be available in future versions of Windows. Starting with Windows Threshold, use AddAudioEffectAsync and AddVideoEffectAsync instead", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public IAsyncAction AddEffectAsync(MediaStreamType mediaStreamType, string effectActivationID, IPropertySet effectSettings);
[Windows.Foundation.Metadata.Deprecated("AddEffectAsync might not be available in future versions of Windows. Starting with Windows Threshold, use AddAudioEffectAsync and AddVideoEffectAsync instead", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public IAsyncAction AddEffectAsync(MediaStreamType mediaStreamType, string effectActivationID, IPropertySet effectSettings);
function addEffectAsync(mediaStreamType, effectActivationID, effectSettings)
Public Function AddEffectAsync (mediaStreamType As MediaStreamType, effectActivationID As String, effectSettings As IPropertySet) As IAsyncAction

Parâmetros

mediaStreamType
MediaStreamType

Especifica os fluxos aos quais o efeito será aplicado.

effectActivationID
String

Platform::String

winrt::hstring

O identificador de classe da classe de runtime ativável que implementa o efeito. A classe de runtime deve implementar a interface IMediaExtension .

effectSettings
IPropertySet

Parâmetros de configuração para o efeito.

Retornos

Retorna um objeto IAsyncAction usado para controlar a operação assíncrona.

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
backgroundMediaRecording microphone webcam

Comentários

A partir do Windows 10, esse método foi preterido. Em vez disso, use AddAudioEffectAsync ou AddVideoEffectAsync . Para obter diretrizes sobre como adicionar efeitos aos fluxos de captura e visualização da câmera, consulte Efeitos para captura de vídeo.

Aplica-se a