MFPMediaPlayer_InsertEffect
Applies an audio or video effect to playback.
MFPMediaPlayer_InsertEffect PROTO MediaPlayer:DWORD, pEffect:DWORD, bOptional:DWORD
Parameters
MediaPlayer- A pointer to the Media Player (IMFPMediaPlayer) object.pEffect- Pointer to the IUnknown interface for one of the following:A Media Foundation transform (MFT) that implements the effect. MFTs expose the IMFTransform interface.
An activation object that creates an MFT. Activation objects expose the IMFActivate interface.
bOptional- Specifies whether the effect is optional.
Returns
TRUE if successful or FALSE otherwise.
Notes
The object specified in the pEffect parameter can implement either a video effect or an audio effect. The effect is applied to any media items set after the method is called. It is not applied to the current media item.
See Also
MFPMediaPlayer_RemoveEffect, MFPMediaPlayer_RemoveAllEffects