Bagikan melalui


IWMWriterNetworkSink 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 IWMWriterNetworkSink interface is used to deliver streams to the network. It inherits all the methods of IWMWriterSink, and adds methods to configure the network sink.

The network sink object exposes this interface. To create the network sink object, call the WMCreateWriterNetworkSink function.

Inheritance

The IWMWriterNetworkSink interface inherits from IWMWriterSink. IWMWriterNetworkSink also has these types of members:

Methods

The IWMWriterNetworkSink interface has these methods.

 
IWMWriterNetworkSink::Close

The Close method disconnects all clients from the network sink, and releases the port.
IWMWriterNetworkSink::Disconnect

The Disconnect method disconnects all clients from the network sink.
IWMWriterNetworkSink::GetHostURL

The GetHostURL method retrieves the URL from which the stream is broadcast. Clients will access the stream from this URL.
IWMWriterNetworkSink::GetMaximumClients

The GetMaximumClients method retrieves the maximum number of clients that can connect to this sink.
IWMWriterNetworkSink::GetNetworkProtocol

The GetNetworkProtocol method retrieves the network protocol that the network sink uses. Currently, HTTP is the only protocol the network sink supports.
IWMWriterNetworkSink::Open

The Open method opens a network port, and starts listening for network connections.
IWMWriterNetworkSink::SetMaximumClients

The SetMaximumClients method sets the maximum number of clients that can connect to this sink. Call this method before streaming begins.
IWMWriterNetworkSink::SetNetworkProtocol

The SetNetworkProtocol method sets the network protocol that the network sink uses. Currently, HTTP is the only protocol supported by the network sink.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

Broadcasting ASF Data

IWMWriterSink Interface

Interfaces

Writer Object