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

Définition

Ajoute un effet audio ou vidéo.

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

Paramètres

mediaStreamType
MediaStreamType

Spécifie les flux auxquels l’effet sera appliqué.

effectActivationID
String

Platform::String

winrt::hstring

Identificateur de classe de la classe runtime activable qui implémente l’effet. La classe runtime doit implémenter l’interface IMediaExtension .

effectSettings
IPropertySet

Paramètres de configuration de l’effet.

Retours

Retourne un objet IAsyncAction utilisé pour contrôler l’opération asynchrone.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
backgroundMediaRecording microphone webcam

Remarques

À partir de Windows 10, cette méthode est déconseillée. Utilisez plutôt AddAudioEffectAsync ou AddVideoEffectAsync . Pour obtenir des conseils pratiques sur l’ajout d’effets aux flux de capture d’appareil photo et d’aperçu, consultez Effets pour la capture vidéo.

S’applique à