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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
    • Method Detail

      • 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.