fm.liveswitch.NackConfig Class Reference

A NACK Config. More...

Public Member Functions

boolean getDisableBuffering ()
 Gets a value indicating whether to disable support for Generic NACKs. More...
 
int getReceiveBufferLength ()
 Gets the number of packets to hold in the generic NACK buffer awaiting an earlier packet before releasing them. More...
 
int getSendBufferLength ()
 Gets the length of the send buffer. More...
 
 NackConfig ()
 Initializes a new instance of the fm.liveswitch.NackConfig class. More...
 
 NackConfig (int sendBufferLength, int receiveBufferLength)
 Initializes a new instance of the fm.liveswitch.NackConfig class. More...
 
void setReceiveBufferLength (int value)
 Sets the number of packets to hold in the generic NACK buffer awaiting an earlier packet before releasing them. More...
 
void setSendBufferLength (int value)
 Sets the length of the send buffer. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ NackConfig() [1/2]

fm.liveswitch.NackConfig.NackConfig ( )

Initializes a new instance of the fm.liveswitch.NackConfig class.

◆ NackConfig() [2/2]

fm.liveswitch.NackConfig.NackConfig ( int  sendBufferLength,
int  receiveBufferLength 
)

Initializes a new instance of the fm.liveswitch.NackConfig class.

Parameters
sendBufferLengthLength of the send buffer.
receiveBufferLengthLength of the receive buffer.

Member Function Documentation

◆ getDisableBuffering()

boolean fm.liveswitch.NackConfig.getDisableBuffering ( )

Gets a value indicating whether to disable support for Generic NACKs.

◆ getReceiveBufferLength()

int fm.liveswitch.NackConfig.getReceiveBufferLength ( )

Gets the number of packets to hold in the generic NACK buffer awaiting an earlier packet before releasing them.

Defaults to 128.

◆ getSendBufferLength()

int fm.liveswitch.NackConfig.getSendBufferLength ( )

Gets the length of the send buffer.

◆ setReceiveBufferLength()

void fm.liveswitch.NackConfig.setReceiveBufferLength ( int  value)

Sets the number of packets to hold in the generic NACK buffer awaiting an earlier packet before releasing them.

Defaults to 128.

◆ setSendBufferLength()

void fm.liveswitch.NackConfig.setSendBufferLength ( int  value)

Sets the length of the send buffer.