IWMSAdminMulticastSink Object (Visual Basic .NET)
The IWMSAdminMulticastSink object is a data sink that you can use to send content to multicast clients. It is exposed by the WMS Multicast Data Sink plug-in.
The IWMSAdminMulticastSink object exposes the following properties.
Property |
Description |
---|---|
DataProtocol |
Specifies and retrieves the data protocol for the multicast. |
DestinationMulticastIPAddress |
Specifies and retrieves the IP address to which the multicast broadcast is sent. |
DestinationMulticastPort |
Specifies and retrieves the port number to which the multicast broadcast is sent. |
LocalIPAddress |
Specifies and retrieves the local IP address from which the multicast broadcast is sent. |
LoggingURL |
Specifies and retrieves the URL used to log messages during a multicast. |
MaximumPacketSize |
Not implemented in this release. |
MulticastTtl |
Specifies and retrieves the maximum permitted number of intermediate router hops for the multicast transmission. |
UnicastRolloverURL |
Specifies and retrieves the unicast URL used to redirect clients when a multicast session request fails. |
UnicastRolloverURLOptions |
Specifies and retrieves an enumeration value indicating whether the unicast rollover URL is a default or custom type. |
Example
The following example illustrates how to retrieve an IWMSAdminMulticastSink object.
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub RetrieveObj()
' Declare variables.
Dim Server As WMSServer
Dim BCPubPoint As IWMSBroadcastPublishingPoint
Dim Plugin As IWMSPlugin
Dim AdminMulticastSink As IWMSAdminMulticastSink
Try
' Create the WMSServer object.
Server = New WMSServer()
' Add a new broadcast publishing point.
BCPubPoint = Server.PublishingPoints.Add("NewPubPoint", _
WMS_PUBLISHING_POINT_CATEGORY.WMS_PUBLISHING_POINT_BROADCAST, _
"Push:*")
' Retrieve the plug-in to be configured.
Plugin = BCPubPoint.BroadcastDataSinks.Item( _
"WMS Multicast Data Writer")
' Retrieve the custom interface of the plug-in.
AdminMulticastSink = 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