Поделиться через


IWMBandwidthSharing 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 IWMBandwidthSharing interface contains methods to manage the properties of combined streams.

The list of streams that share bandwidth is stored in the bandwidth sharing object. The streams can be manipulated using the methods of the IWMStreamList interface. IWMBandwidthSharing inherits from IWMStreamList, so the stream list manipulation methods are always exposed through this interface.

The information in a bandwidth sharing object is purely informational. Nothing in the SDK seeks to enforce or check the accuracy of the bandwidth specified. You might want to use bandwidth sharing so that a reading application can make adjustments based on the information contained in the bandwidth sharing object.

An IWMBandwidthSharing interface is exposed for each bandwidth sharing object upon creation. Bandwidth sharing objects are created using the IWMProfile3::CreateNewBandwidthSharing method.

Inheritance

The IWMBandwidthSharing interface inherits from IWMStreamList. IWMBandwidthSharing also has these types of members:

Methods

The IWMBandwidthSharing interface has these methods.

 
IWMBandwidthSharing::GetBandwidth

The GetBandwidth method retrieves the bandwidth and maximum buffer size of a combined stream.
IWMBandwidthSharing::GetType

The GetType method retrieves the type of sharing for the bandwidth sharing object.
IWMBandwidthSharing::SetBandwidth

The SetBandwidth method sets the bandwidth and maximum buffer size for a combined stream.
IWMBandwidthSharing::SetType

The SetType method sets the type of sharing (exclusive or partial) for the bandwidth sharing object.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

Bandwidth Sharing Object

IWMStreamList

Using Bandwidth Sharing