Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The UnicastRolloverURLOptions property specifies and retrieves an enumeration value indicating whether the unicast rollover URL is a default or custom type.
IWMSAdminMulticastSink.UnicastRolloverURLOptions = WMS_UNICAST_ROLLOVER_URL_OPTIONSWMS_UNICAST_ROLLOVER_URL_OPTIONS = IWMSAdminMulticastSink.UnicastRolloverURLOptions
Property Value
A member of a 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
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub SetURLOptions()
' 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
' Set the URL options set for the default
' unicast rollover.
AdminMulticastSink.UnicastRolloverURLOptions = _
WMS_UNICAST_ROLLOVER_URL_OPTIONS.WMS_UNICAST_ROLLOVER_URL_OPTIONS_CUSTOM
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
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 Datacenter.