IWMSPublishingPoint.EnableFEC (C#)

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.

bool = IWMSPublishingPoint.EnableFEC;IWMSPublishingPoint.EnableFEC = bool;

Property Value

A bool indicating whether forward error correction is enabled.

If this property fails, it throws an exception.

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

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

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

bool                   bVal;

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 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;
    }
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

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

Reference

IWMSPublishingPoint Object (C#)

IWMSPublishingPoints Object (C#)