Share via


IMediaParams interface (medparam.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IMediaParams interface sets and retrieves envelope-following parameters on an object.

To reduce overhead, parameters are referenced by index value, and all parameter values are 32 bits, defined as type MP_DATA. Use the IMediaParamInfo interface to determine whether a given parameter is an integer, floating-point value, Boolean value, or member of an enumerated type.

Inheritance

The IMediaParams interface inherits from the IUnknown interface. IMediaParams also has these types of members:

Methods

The IMediaParams interface has these methods.

 
IMediaParams::AddEnvelope

The AddEnvelope method adds an envelope to a parameter.
IMediaParams::FlushEnvelope

The FlushEnvelope method flushes envelope data for a specified parameter over the specified time range.
IMediaParams::GetParam

The GetParam method retrieves the current value of the specified parameter. If the parameter is currently within an envelope segment, the returned value is the value on the most recently processed sample.
IMediaParams::SetParam

The SetParam method sets the value of a parameter.
IMediaParams::SetTimeFormat

The SetTimeFormat method specifies the time format for the object.

Requirements

Requirement Value
Target Platform Windows
Header medparam.h