IWMSBroadcastPublishingPoint.AllowStreamSplitting (Visual Basic .NET)
Previous | Next |
IWMSBroadcastPublishingPoint.AllowStreamSplitting (Visual Basic .NET)
The AllowStreamSplitting property specifies and retrieves a Boolean value that indicates whether the stream can be split. A cache proxy device can split a stream to minimize network bandwidth. A cache proxy device splits a broadcast stream by making a single connection to an upstream server and then copying the incoming packets to multiple downstream clients.
Syntax
BroadcastPublishingPoint .AllowStreamSplitting = Boolean Boolean = BroadcastPublishingPoint .AllowStreamSplitting
Property Value
A Boolean that indicates whether the stream can be split.
If this property fails, it returns an error number.
Number | Description |
0xC00D145AL | The publishing point has already been removed. |
Remarks
The default value is True. This allows the proxy server to split a broadcast so that, regardless of how many clients are connected to the proxy to receive the broadcast, there is only one connection from the proxy server to the origin server. If you set this value to False, there must be one connection between the proxy and the origin server for each client connected to the proxy server.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub DisableStreamSplitting() ' Declare variables. Dim Server As WMSServer Dim PubPoints As IWMSPublishingPoints Dim PubPoint As IWMSPublishingPoint Dim BCPubPoint As IWMSBroadcastPublishingPoint Dim bVal As Boolean Dim i As Integer Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve the IWMSPublishingPoints object. PubPoints = Server.PublishingPoints ' Retrieve each publishing point and retrieve the ' IWMSBroadcastPublishingPoint object. For i = 0 To Server.PublishingPoints.Count – 1 PubPoint = PubPoints.Item(i) If PubPoint.Type = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST Then BCPubPoint = PubPoint Exit For End If Next i ' Retrieve a Boolean value indicating whether the ' stream can be split. bVal = BCPubPoint.AllowStreamSplitting ' Set the publishing point to disallow stream splitting. BCPubPoint.AllowStreamSplitting = False
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
Previous | Next |