Class NackConfig
A NACK Config.
NackConfig is for enabling/configuring negative acknowledgement. Negative acknowledgements are used by media receivers to request that a media sender retransmit a packet. It is highly effective for video in low-latency networks since video is stateful and the cost of losing a packet is high. It is far less effective for audio, where any delay is especially harmful and the cost of losing a packet is not significant. Because of this, it is enabled by default for video and disabled by default for audio. You can modify the buffer size using NackConfig, but generally, it should be left with default values. The option to set these values will most likely be removed in a future release as our adaptive algorithms improve.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class NackConfig
Constructors
NackConfig()
Initializes a new instance of the NackConfig class.
Declaration
public NackConfig()
NackConfig(Int32, Int32)
Initializes a new instance of the NackConfig class.
Declaration
public NackConfig(int sendBufferLength, int receiveBufferLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sendBufferLength | Length of the send buffer. |
System.Int32 | receiveBufferLength | Length of the receive buffer. |
Properties
DisableBuffering
Gets or sets a value indicating whether to disable support for Generic NACKs.
Declaration
public bool DisableBuffering { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ReceiveBufferLength
Gets or sets the number of packets to hold in the generic NACK buffer awaiting an earlier packet before releasing them. Defaults to 128.
Declaration
public int ReceiveBufferLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SendBufferLength
Gets or sets the length of the send buffer.
Declaration
public int SendBufferLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |