Interface StatisticsEvent


public interface StatisticsEvent

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

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

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the average latency of heartbeat messages sent from Liberator to StreamLink.
    long
    Gets the clock offset between Liberator and StreamLink (Liberator time minus StreamLink time).
    long
    Gets the latency of the latest heartbeat message sent from Liberator to StreamLink.
  • Method Details

    • getLatency

      long getLatency()

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

      Returns:
      The latest heartbeat latency in milliseconds.
    • getAverageLatency

      long getAverageLatency()

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

      Returns:
      The average heartbeat latency in milliseconds.
    • getClockOffset

      long getClockOffset()

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

      Returns:
      The clock offset in milliseconds.