Skip to main content
IWMStreamConfig interface

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.


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


The IWMStreamConfig interface has these methods.


Retrieves the bit rate for the stream.


Retrieves the maximum latency between when a stream is received and when it begins to be displayed.


Retrieves the connection name given to the stream.


Retrieves the stream name.


Retrieves the stream number.


Retrieves the major type of the stream (audio, video, or script).


Specifies the bit rate for the stream.


Specifies the maximum latency between when a stream is received and when it begins to be displayed.


Specifies the connection name given to a stream.


Specifies the stream name.


Specifies the stream number.


The following interfaces can be obtained by using the QueryInterface method of this interface.

IWMMediaProps IID_IWMMediaProps
IWMPropertyVault IID_IWMPropertyVault
IWMStreamConfig2 IID_IWMStreamConfig2
IWMStreamConfig3 IID_IWMStreamConfig3
IWMVideoMediaProps (on video streams only)IID_IWMVideoMediaProps


See also

IWMInputMediaProps Interface
IWMMediaProps Interface
IWMOutputMediaProps Interface
IWMProfile Interface
IWMStreamConfig2 Interface
IWMStreamConfig3 Interface
IWMVideoMediaProps Interface
Working with Profiles