IWMStreamConfig interface (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMStreamConfig interface is the primary interface of a stream configuration object. It provides methods to configure basic properties for streams to be used in a profile.

Every profile contains one or more stream configuration objects. You can get the IWMStreamConfig interface of a stream configuration object by calling the IWMProfile::GetStream method or the IWMProfile::GetStreamByNumber method. The difference between these two methods is that GetStream retrieves the stream using an index ranging from zero to one less than the total stream count, and GetStreamByNumber retrieves the stream using the assigned stream number. You can also retrieve a stream configuration object using the IWMProfile::CreateNewStream method. All of the methods that create stream configuration objects set a pointer to this interface.

Important  After calling one or more of the IWMStreamConfig::Set... methods, you must call IWMProfile::ReconfigStream for all the changes to take effect in the profile.
 

Inheritance

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

Methods

The IWMStreamConfig interface has these methods.

 
IWMStreamConfig::GetBitrate

The GetBitrate method retrieves the bit rate for the stream.
IWMStreamConfig::GetBufferWindow

The GetBufferWindow method retrieves the maximum latency between when a stream is received and when it begins to be displayed.
IWMStreamConfig::GetConnectionName

The GetConnectionName method retrieves the input name given to the stream.
IWMStreamConfig::GetStreamName

The GetStreamName method retrieves the stream name.
IWMStreamConfig::GetStreamNumber

The GetStreamNumber method retrieves the stream number.
IWMStreamConfig::GetStreamType

The GetStreamType method retrieves the major type of the stream (audio, video, or script).
IWMStreamConfig::SetBitrate

The SetBitrate method specifies the bit rate for the stream.
IWMStreamConfig::SetBufferWindow

The SetBufferWindow method specifies the maximum latency between when a stream is received and when it begins to be displayed.
IWMStreamConfig::SetConnectionName

The SetConnectionName method specifies a name for an input. If the profile you are creating contains multiple bit rate mutual exclusion, each of the mutually exclusive streams must have the same connection name.
IWMStreamConfig::SetStreamName

The SetStreamName method assigns a name to the stream represented by the stream configuration object.
IWMStreamConfig::SetStreamNumber

The SetStreamNumber method specifies the stream number.

Requirements

   
Target Platform Windows
Header wmsdkidl.h

See also

IWMInputMediaProps Interface

IWMMediaProps Interface

IWMOutputMediaProps Interface

IWMProfile Interface

IWMStreamConfig2 Interface

IWMStreamConfig3 Interface

IWMVideoMediaProps Interface

Interfaces

Working with Profiles