MediaCapture.AddEffectAsync(MediaStreamType, String, IPropertySet) Metodo

Definizione

Aggiunge un effetto audio o video.

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

Parametri

mediaStreamType
MediaStreamType

Specifica i flussi a cui verrà applicato l'effetto.

effectActivationID
String

Platform::String

winrt::hstring

Identificatore di classe della classe di runtime attivabile che implementa l'effetto. La classe di runtime deve implementare l'interfaccia IMediaExtension .

effectSettings
IPropertySet

Parametri di configurazione per l'effetto.

Restituisce

Restituisce un oggetto IAsyncAction utilizzato per controllare l'operazione asincrona.

Attributi

Requisiti Windows

Funzionalità dell'app
backgroundMediaRecording microphone webcam

Commenti

A partire da Windows 10, questo metodo è deprecato. Usare invece AddAudioEffectAsync o AddVideoEffectAsync . Per indicazioni pratiche sull'aggiunta di effetti ai flussi di acquisizione e anteprima della fotocamera, vedi Effetti per l'acquisizione video.

Si applica a