MediaCapture.AddEffectAsync(MediaStreamType, String, IPropertySet) Metode

Definisi

Menambahkan efek audio atau 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

Parameter

mediaStreamType
MediaStreamType

Menentukan aliran tempat efek akan diterapkan.

effectActivationID
String

Platform::String

winrt::hstring

Pengidentifikasi kelas dari kelas runtime yang dapat diaktifkan yang mengimplementasikan efeknya. Kelas runtime harus mengimplementasikan antarmuka IMediaExtension .

effectSettings
IPropertySet

Parameter konfigurasi untuk efeknya.

Mengembalikan

Mengembalikan objek IAsyncAction yang digunakan untuk mengontrol operasi asinkron.

Atribut

Persyaratan Windows

Kemampuan aplikasi
backgroundMediaRecording microphone webcam

Keterangan

Pada Windows 10, metode ini tidak digunakan lagi. Gunakan AddAudioEffectAsync atau AddVideoEffectAsync sebagai gantinya. Untuk panduan cara menambahkan efek ke pengambilan kamera dan aliran pratinjau, lihat Efek untuk pengambilan video.

Berlaku untuk