IWMSPublishingPoint.EnableFEC (Visual Basic .NET)

banner art

Previous Next

IWMSPublishingPoint.EnableFEC (Visual Basic .NET)

The EnableFEC property specifies and retrieves a value indicating whether Forward Error Correction is enabled.

  • Note   This method is available only on Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; and Windows Server 2008.

Syntax

  Boolean = IWMSPublishingPoint
  .EnableFEC

  IWMSPublishingPoint
  .EnableFEC = 
  Boolean

Property Value

A Boolean indicating whether forward correction is enabled.

If this property fails, it returns an error number.

Number Description
0xC00D1459L This feature is not supported on this operating system.
0xC00D145AL The publishing point was already removed.

Remarks

The default value is True. When this value is True, a client may request Forward Error Correction at any time that the client is connected. Forward error correction is applicable only to RTSP connections and is not supported for outgoing distribution connection clients. Changes to this value apply only to new client connections. The maximum number of data packets that can be buffered before error correction is applied to them can be set by using the IWMSPublishingPointLimits.FECPacketSpan method.

Example Code

  Server As WMSServer
    Dim PubPoints As IWMSPublishingPoints
    Dim PubPoint As IWMSPublishingPoint
    Dim bVal As Boolean

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 a Boolean value indicating whether
        ' Forward Error Correction is enabled.
        bVal = PubPoint.EnableFEC

        ' Set a Boolean value indicating that
        ' Forward Error Correction is enabled.
        PubPoint.EnableFEC = True

    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