Share via


IWMSAdminMulticastSink.UnicastRolloverURLOptions (C#)

banner art

Previous Next

IWMSAdminMulticastSink.UnicastRolloverURLOptions (C#)

The UnicastRolloverURLOptions property specifies and retrieves an enumeration value indicating whether the unicast rollover URL is a default or custom type.

Syntax

  IWMSAdminMulticastSink
  .UnicastRolloverURLOptions = WMS_UNICAST_ROLLOVER_URL_OPTIONS;
WMS_UNICAST_ROLLOVER_URL_OPTIONS = IWMSAdminMulticastSink.UnicastRolloverURLOptions;

Property Value

A member of the WMS_UNICAST_ROLLOVER_URL_OPTIONS enumeration type that indicates the type of the rollover URL. This must be one of the following values.

Value Description
WMS_UNICAST_ROLLOVER_URL_OPTIONS_NONE The type of the rollover URL is not specified.
WMS_UNICAST_ROLLOVER_URL_OPTIONS_DEFAULT The type of the rollover URL is the default specified in the source file.
WMS_UNICAST_ROLLOVER_URL_OPTIONS_CUSTOM The type of the rollover URL is not the default specified in the source file.

If this property fails, it throws an exception.

Number Description
0x80070057 The value you specified does not equal a member of the WMS_UNICAST_ROLLOVER_URL_OPTIONS enumeration type.

Example Code

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;

    // Set the URL options for the default unicast rollover.
    AdminMulticastSink.UnicastRolloverURLOptions =
                        WMS_UNICAST_ROLLOVER_URL_OPTIONS.
                        WMS_UNICAST_ROLLOVER_URL_OPTIONS_CUSTOM;
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

Requirements

Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008 Enterprise; Windows Server 2008 Datacenter.

See Also

Previous Next