Share via


IWMSPublishingPointLimits.FECPacketSpan (Visual Basic .NET)

banner art

Previous Next

IWMSPublishingPointLimits.FECPacketSpan (Visual Basic .NET)

The FECPacketSpan method specifies and retrieves the largest number of data packets that can be buffered before error correction is applied.

Syntax

  IWMSPublishingPointLimits
  .FECPacketSpan = Integer
Integer = IWMSPublishingPointLimits.FECPacketSpan

Property Value

Integer indicating the largest number of data packets that can be buffered before error correction is applied.

If this property fails, it returns an error number.

Number Description
0x80070057 Integer is an invalid argument.

Remarks

Changes to this value apply only to new client connections. The default value is 24. Valid values are 0-24. A client can request Forward Error Correction (FEC) at any time during the connection by specifying the data packets per span and the FEC packets per span.

Example Code

  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 limit for the number of packets
        ' sent before FEC is applied.
        iValue = Limits.FECPacketSpan
        ' Set the limit for the number of packets
        ' sent before FEC is applied.
        Limits.FECPacketSpan = 12

    Next










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