IWMSAdminUnicastSink Object (C#)

The IWMSAdminUnicastSink object is a data sink that you can use to send content to unicast clients. It is exposed by the WMS Unicast Data Sink plug-in.

The IWMSAdminUnicastSink object exposes the following properties.

Property

Description

DataProtocols

Retrieves a semicolon-delimited list of the data protocols supported by the plug-in.

DefaultPacketSize

Specifies and retrieves a Boolean value indicating whether the network packet size should default to the packet size of the content being delivered.

MaximumPacketSize

Specifies and retrieves the maximum packet size that can be sent by the unicast data sink.

MinClientPacketSize

Specifies and retrieves the minimum value of the packet size that a client can request.

OptimalPacketSize

Specifies and retrieves the optimal packet size sent by the unicast data sink.

TCPEnabled

Specifies and retrieves a Boolean value indicating whether the unicast data sink can use TCP when selecting a streaming protocol.

ThirdPartyStreamingEnabled

Specifies and retrieves a Boolean value indicating whether UDP packets can be sent to an IP address that differs from the address of the client's TCP connection.

UDPEnabled

Specifies and retrieves a Boolean value indicating whether the unicast data sink can use UDP when selecting a streaming protocol.

Example

The following example illustrates how to retrieve an IWMSAdminUnicastSink object.

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;

// Declare variables.
WMSServer Server;
IWMSPlugin Plugin;
IWMSAdminUnicastSink AdminUnicastSink;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Retrieve the plug-in to be configured.
    Plugin = Server.UnicastDataSinks[
                        "WMS Unicast Data Writer"];

    // Retrieve the custom interface of the plug-in.
    AdminUnicastSink =
        (IWMSAdminUnicastSink)Plugin.CustomInterface;
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

See Also

Concepts

System Plug-ins (C#)