IWMSAdminMulticastSink Object (C#)
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 number of intermediate router hops permitted 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.
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSBroadcastPublishingPoint BCPubPoint;
IWMSPlugin Plugin;
IWMSAdminMulticastSink AdminMulticastSink;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Add a new broadcast publishing point.
BCPubPoint = (IWMSBroadcastPublishingPoint)
Server.PublishingPoints.Add("NewPubPoint",
WMS_PUBLISHING_POINT_CATEGORY.
WMS_PUBLISHING_POINT_BROADCAST,
"Push:*");
// Retrieve the plug-in to be configured.
Plugin = BCPubPoint.BroadcastDataSinks[
"WMS Multicast Data Writer"];
// Retrieve the custom interface of the plug-in.
AdminMulticastSink =
(IWMSAdminMulticastSink)Plugin.CustomInterface;
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}