Redigera

Dela via


Writer Network Sink Object

[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 writer network sink object is used to write digital media to a network.

The writer network sink object is created by the function WMCreateWriterNetworkSink, which sets a pointer to an IWMWriterNetworkSink interface. The other interfaces of the writer network sink object can be obtained by calling the QueryInterface method.

Interface Description
IWMClientConnections Collects information on connected clients.
IWMClientConnections2 Retrieves advanced client information.
IWMRegisterCallback Enables the application to get status messages from the object.
IWMWriterNetworkSink Opens and closes ports, sets and retrieves the maximum number of clients that can connect to the sink object, sets the network protocol to be used by the writer object, and performs other advanced functions.
IWMWriterSink Allocates memory, determines whether the sink is operating in real time, and handles several callback functions.

 

The following callback interface can be implemented by the application to track the progress of a writer network sink object.

Interface Description
IWMStatusCallback Required when status information must be communicated to the host application.

 

Broadcasting ASF Data

Objects

Working with Writer Sinks