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... | |
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.
fm.liveswitch.NackConfig.NackConfig | ( | ) |
Initializes a new instance of the fm.liveswitch.NackConfig class.
fm.liveswitch.NackConfig.NackConfig | ( | int | sendBufferLength, |
int | receiveBufferLength | ||
) |
Initializes a new instance of the fm.liveswitch.NackConfig class.
sendBufferLength | Length of the send buffer. |
receiveBufferLength | Length of the receive buffer. |
boolean fm.liveswitch.NackConfig.getDisableBuffering | ( | ) |
Gets a value indicating whether to disable support for Generic NACKs.
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.
int fm.liveswitch.NackConfig.getSendBufferLength | ( | ) |
Gets the length of the send buffer.
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.
void fm.liveswitch.NackConfig.setSendBufferLength | ( | int | value | ) |
Sets the length of the send buffer.