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.
 

Members

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

Methods

The IWMStreamConfig interface has these methods.

MethodDescription
GetBitrate

Retrieves the bit rate for the stream.

GetBufferWindow

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

GetConnectionName

Retrieves the connection name given to the stream.

GetStreamName

Retrieves the stream name.

GetStreamNumber

Retrieves the stream number.

GetStreamType

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

SetBitrate

Specifies the bit rate for the stream.

SetBufferWindow

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

SetConnectionName

Specifies the connection name given to a stream.

SetStreamName

Specifies the stream name.

SetStreamNumber

Specifies the stream number.

 

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

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

 

See also

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

 

 

Show: