IWMSPublishingPointLimits.PerPlayerRapidStartBandwidth (Visual Basic .NET)

banner art

Previous Next

IWMSPublishingPointLimits.PerPlayerRapidStartBandwidth (Visual Basic .NET)

The PerPlayerRapidStartBandwidth property specifies and retrieves the rapid starting bandwidth, in Kbps, permitted for a player connection on the publishing point.

Syntax

  IWMSPublishingPointLimits
  .PerPlayerRapidStartBandwidth = Integer
Integer = IWMSPublishingPointLimits.PerPlayerRapidStartBandwidth

Property Value

Integer containing the rapid starting bandwidth, in Kbps.

If this property fails, it returns an error number.

Number Description
0x80070057 Integer is an invalid argument.

Remarks

Limits the bandwidth any single unicast player can use for accelerating the initial buffering of the content. Players requesting content encoded at a bit rate that exceeds this limit will not be able to achieve any benefit from the Rapid Start feature. The default value is 3500 Kbps.

Example Code

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub GetSetBandwidthLimit()

    ' Declare variables.
    Dim Server As WMSServer
    Dim PubPoints As IWMSPublishingPoints
    Dim PubPoint As IWMSPublishingPoint
    Dim Limits As IWMSPublishingPointLimits
    Dim iValue As Integer

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints

    ' Retrieve information about each publishing point.
    For Each PubPoint In PubPoints

        ' Retrieve the IWMSPublishingPointLimits
        ' object for the publishing point.
        Limits = PubPoint.Limits
        ' Retrieve the rapid bandwidth limit allowed for each
        ' client connection.
        iValue = Limits.PerPlayerRapidStartBandwidth
        ' Set the rapid bandwidth limit allowed for each client connection.
        Limits.PerPlayerRapidStartBandwidth = 1024

    Next

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 family, Windows Server 2008 family.

See Also

Previous Next