MediaCapture.AddEffectAsync(MediaStreamType, String, IPropertySet) Methode

Definition

Fügt einen Audio- oder Videoeffekt hinzu.

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

Parameter

mediaStreamType
MediaStreamType

Gibt die Streams an, auf die der Effekt angewendet wird.

effectActivationID
String

Platform::String

winrt::hstring

Der Klassenbezeichner der aktivierbaren Laufzeitklasse, die den Effekt implementiert. Die Runtimeklasse muss die IMediaExtension-Schnittstelle implementieren.

effectSettings
IPropertySet

Konfigurationsparameter für den Effekt.

Gibt zurück

Gibt ein IAsyncAction-Objekt zurück, das zum Steuern des asynchronen Vorgangs verwendet wird.

Attribute

Windows-Anforderungen

App-Funktionen
backgroundMediaRecording microphone webcam

Hinweise

Ab Windows 10 ist diese Methode veraltet. Verwenden Sie stattdessen AddAudioEffectAsync oder AddVideoEffectAsync . Anleitungen zum Hinzufügen von Effekten zu Kameraaufnahme- und Vorschaustreams finden Sie unter Effekte für die Videoaufnahme.

Gilt für: