IWMSAdminMulticastSink.UnicastRolloverURL (C#)
Previous | Next |
IWMSAdminMulticastSink.UnicastRolloverURL (C#)
The UnicastRolloverURL property specifies and retrieves the custom unicast rollover URL to be used to redirect clients when a multicast session request fails.
Syntax
IWMSAdminMulticastSink .UnicastRolloverURL = string; string = IWMSAdminMulticastSink.UnicastRolloverURL;
Property Value
A string containing the unicast URL.
If this property fails, it throws an exception.
Number | Description |
0x8007000E | The server could not allocate memory to copy the rollover URL to a local variable. |
Remarks
A unicast rollover URL can be either a custom or default type. For more information, see the IWMSAdminMulticastSink.UnicastRolloverURLOptions property.
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 default unicast rollover URL. AdminMulticastSink.UnicastRolloverURL = "rtsp://server/pubpoint"; } 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 |