Compartir a través de


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

Definición

Agrega un efecto de audio o 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 las secuencias a las que se aplicará el efecto.

effectActivationID
String

Platform::String

winrt::hstring

Identificador de clase de la clase en tiempo de ejecución activable que implementa el efecto. La clase en tiempo de ejecución debe implementar la interfaz IMediaExtension .

effectSettings
IPropertySet

Parámetros de configuración para el efecto.

Devoluciones

Devuelve un objeto IAsyncAction que se usa para controlar la operación asincrónica.

Atributos

Requisitos de Windows

Características de aplicaciones
backgroundMediaRecording microphone webcam

Comentarios

A partir de Windows 10, este método está en desuso. En su lugar, use AddAudioEffectAsync o AddVideoEffectAsync . Para obtener instrucciones paso a paso sobre cómo agregar efectos a las secuencias de captura y vista previa de la cámara, consulte Efectos para la captura de vídeo.

Se aplica a