IWMSPublishingPointLimits.FECPacketSpan (C#)

banner art

Previous Next

IWMSPublishingPointLimits.FECPacketSpan (C#)

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

Syntax

  IWMSPublishingPointLimits
  .FECPacketSpan = int;
int = IWMSPublishingPointLimits.FECPacketSpan;

Property Value

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

If this property fails, it throws an exception.

Number Description
0x80070057 int 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 number of data packets and the number of FEC packets per span.

Example Code

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;

// Declare variables.
WMSServer                   Server;
IWMSPublishingPoints        PubPoints;
IWMSPublishingPoint         PubPoint;
IWMSPublishingPointLimits   Limits;

int                        iValue;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints;

    // Retrieve information about each publishing point.
    for (int i = 0; i < PubPoints.Count; i++)
    {
        PubPoint = PubPoints[i];

        // 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;
    }







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