Share via


IWMSAdminUnicastSink Object (Visual Basic .NET)

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.

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugin As IWMSPlugin
    Dim AdminUnicastSink As IWMSAdminUnicastSink

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the plug-in to be configured.
    Plugin = Server.UnicastDataSinks.Item("WMS Unicast Data Writer")

    ' Retrieve the custom interface of the plug-in.
    AdminUnicastSink = Plugin.CustomInterface

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
Finally
    ' TODO: Clean-up code goes here.
End Try

End Sub

See Also

Concepts

System Plug-ins (Visual Basic .NET)