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.
.gif)
| Previous | Next |
IWMSBroadcastPublishingPoint.BroadcastDataSinks (C#)
The BroadcastDataSinks property retrieves an IWMSPlugins collection containing broadcast data sink plug-ins that can be used to send content to a client.
Syntax
IWMSPlugins = IWMSBroadcastPublishingPoint.BroadcastDataSinks;
Property Value
An IWMSPlugins object.
If this property fails, it throws an exception.
| Number | Description |
| 0xC00D145AL | The publishing point has already been removed. |
Remarks
You must use the IWMSBroadcastPublishingPoint.Start method to begin sending content to the client. Only one multicast data sink plug-in can be enabled at any time. This property is accessible through the plug-in's IWMSNamedValues collection.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSBroadcastPublishingPoint BCPubPoint;
IWMSPlugins Plugins;
IWMSPublishingPoints PubPoints;
IWMSPublishingPoint PubPoint;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints;
// Retrieve each publishing point and retrieve the
// IWMSBroadcastPublishingPoint object.
for (int i = 0; i < PubPoints.Count; i++)
{
PubPoint = PubPoints[i];
if (PubPoint.Type ==
WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST)
{
BCPubPoint = (IWMSBroadcastPublishingPoint)PubPoint;
// Retrieve the IWMSPlugins object
// containing broadcast data sink plug-ins.
Plugins = BCPubPoint.BroadcastDataSinks;
break;
}
}
}
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 family, Windows Server 2008 family.
See Also
- IWMSBroadcastPublishingPoint Object (C#)
- IWMSBroadcastPublishingPoint.Start (C#)
- IWMSPlugins Object (C#)
| Previous | Next |