Class
caplin.streamlink

StatisticsEvent

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

The StatisticsEvent will be provided on a 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 (one-way) heartbeat message latency between Liberator and StreamLink.

long getClockOffset()

Gets the clock offset between Liberator and StreamLink.

long getLatency()

Gets the latest (one-way) heartbeat message latency between Liberator and StreamLink.

Constructor Detail

caplin.streamlink.StatisticsEvent()

Method Detail

long getAverageLatency()

Gets the average (one-way) heartbeat message latency between Liberator and StreamLink.

Returns
{long} The average heartbeat latency in milliseconds, or -1 if the latency cannot be calculated.

long getClockOffset()

Gets the clock offset between Liberator and StreamLink.

Returns
{long} The clock offset in milliseconds, or -1 if the clock offset cannot be calculated.

long getLatency()

Gets the latest (one-way) heartbeat message latency between Liberator and StreamLink.

Returns
{long} The latest heartbeat latency in milliseconds, or -1 if the latency cannot be calculated.