Compartir a través de


IWMSDataContainer Object (C#)

The IWMSDataContainer object represents a data container. A data container can be a file, a directory, a live stream, or some other content source. The IWMSDataContainer object contains methods that support a data container. The methods are called by the server and implemented by a data source plug-in. The following diagram illustrates the plug-ins that work together to move content from a data source to the client.

Data path diagram.

Dd892154.wms8_genldatapath_final(en-us,VS.85).gif

The data source plug-in retrieves data from a source and places it into a buffer. Each type of source requires a specialized plug-in. The media parser plug-in creates a packet list of offsets into the buffer. The data sink plug-in writes the data to the client.

Note

   This object is available only on Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; and Windows Server 2008. Custom data source plug-ins can be created only in C++. They cannot be created using C#, or Visual Basic .NET.

The IWMSDataContainer object exposes the following properties and methods.

Method

Description

DoDataContainerExtendedCommand

Not implemented in this release.

FinishParsingPacketlist

Modifies data that is sent to a media parser after the media parser has converted it into one or more packet lists.

GetContainerFormat

Retrieves a GUID that identifies the format of the data container.

GetDataSourcePlugin

Retrieves a reference to the data source plug-in.

GetInfo

Retrieves information about the data container.

GetTransferParameters

Retrieves the optimal offset and buffer size to use for read and write access.

Read

Reads data from the data container.

Write

Writes data from a buffer to the data container.

See Also

Concepts

Custom Plug-in Objects (C#)