Class
caplin.streamlink

StatisticsEvent

Provides access to the statistics relating to an instance of StreamLink.

The StatisticsEvent is provided in an onStatisticsChange callback to a caplin.streamlink.ConnectionListener.

Constructor Summary

Attributes Name and Description
caplin.streamlink.StatisticsEvent()

Method Summary

Attributes Name and Description
long getAverageLatency()

Gets the average latency of heartbeat messages sent from Liberator to StreamLink.

long getClockOffset()

Gets the clock offset between Liberator and StreamLink (Liberator time minus StreamLink time).

long getLatency()

Gets the latency of the latest heartbeat message sent from Liberator to StreamLink.

Constructor Detail

caplin.streamlink.StatisticsEvent()

Method Detail

long getAverageLatency()

Gets the average latency of heartbeat messages sent from Liberator to StreamLink.

Returns
{long} The average heartbeat latency in milliseconds.

long getClockOffset()

Gets the clock offset between Liberator and StreamLink (Liberator time minus StreamLink time).

Returns
{long} The clock offset in milliseconds.

long getLatency()

Gets the latency of the latest heartbeat message sent from Liberator to StreamLink.

Returns
{long} The latest heartbeat latency in milliseconds.