Interface CallStats


public interface CallStats
This object carry various statistic informations regarding the quality of an
audio or video stream for a given Call.

To receive these informations periodically and as soon as they are computed,
implement the call_stats_updated() callback inside a CoreListener.
At any time, the application can access latest computed statistics using Call.getAudioStats()
and Call.getVideoStats().
  • Method Details

    • getDownloadBandwidth

      float getDownloadBandwidth()
      Get the bandwidth measurement of the received stream, expressed in kbit/s,
      including IP/UDP/RTP headers.

      Returns:
      The bandwidth measurement of the received stream in kbit/s.
    • getEstimatedDownloadBandwidth

      float getEstimatedDownloadBandwidth()
      Get the estimated bandwidth measurement of the received stream, expressed in
      kbit/s, including IP/UDP/RTP headers.

      Returns:
      The estimated bandwidth measurement of the received stream in kbit/s.
    • getIceState

      IceState getIceState()
      Get the state of ICE processing.

      Returns:
      The IceState of ICE processing
    • getIpFamilyOfRemote

      Address.Family getIpFamilyOfRemote()
      Get the IP address family of the remote peer.

      Returns:
      The IP address family Address#Family of the remote peer.
    • isZrtpKeyAgreementAlgoPostQuantum

      boolean isZrtpKeyAgreementAlgoPostQuantum()
      Did ZRTP used a Post Quantum algorithm to perform a key exchange.

      Returns:
      true if the ZRTP key exchange was performed using a PQ algo false
      otherwise: ZRTP exchange not completed or not using a PQ algo
    • getJitterBufferSizeMs

      float getJitterBufferSizeMs()
      Get the jitter buffer size in ms.

      Returns:
      The jitter buffer size in ms.
    • getLatePacketsCumulativeNumber

      int getLatePacketsCumulativeNumber()
      Gets the cumulative number of late packets.

      Returns:
      The cumulative number of late packets
    • getLocalLateRate

      float getLocalLateRate()
      Gets the local late rate since last report.

      Returns:
      The local late rate
    • getLocalLossRate

      float getLocalLossRate()
      Get the local loss rate since last report.

      Returns:
      The local loss rate
    • getReceiverInterarrivalJitter

      float getReceiverInterarrivalJitter()
      Gets the remote reported interarrival jitter.

      Returns:
      The interarrival jitter at last received receiver report
    • getReceiverLossRate

      float getReceiverLossRate()
      Gets the remote reported loss rate since last report.

      Returns:
      The receiver loss rate
    • getRoundTripDelay

      float getRoundTripDelay()
      Get the round trip delay in s.

      Returns:
      The round trip delay in s.
    • getRtcpDownloadBandwidth

      float getRtcpDownloadBandwidth()
      Get the bandwidth measurement of the received RTCP, expressed in kbit/s,
      including IP/UDP/RTP headers.

      Returns:
      The bandwidth measurement of the received RTCP in kbit/s.
    • getRtcpUploadBandwidth

      float getRtcpUploadBandwidth()
      Get the bandwidth measurement of the sent RTCP, expressed in kbit/s, including
      IP/UDP/RTP headers.

      Returns:
      The bandwidth measurement of the sent RTCP in kbit/s.
    • getSenderInterarrivalJitter

      float getSenderInterarrivalJitter()
      Gets the local interarrival jitter.

      Returns:
      The interarrival jitter at last emitted sender report
    • getSenderLossRate

      float getSenderLossRate()
      Get the local loss rate since last report.

      Returns:
      The sender loss rate
    • getType

      StreamType getType()
      Get the type of the stream the stats refer to.

      Returns:
      The StreamType the stats refer to
    • getUploadBandwidth

      float getUploadBandwidth()
      Get the bandwidth measurement of the sent stream, expressed in kbit/s,
      including IP/UDP/RTP headers.

      Returns:
      The bandwidth measurement of the sent stream in kbit/s.
    • getUpnpState

      UpnpState getUpnpState()
      Get the state of uPnP processing.

      Returns:
      The UpnpState of uPnP processing.
    • getZrtpAuthTagAlgo

      String getZrtpAuthTagAlgo()
      Get the ZRTP algorithm statistics details (cipher)

      Returns:
      The auth tag algo
    • getZrtpCipherAlgo

      String getZrtpCipherAlgo()
      Get the ZRTP algorithm statistics details (cipher)

      Returns:
      The cipher algo
    • getZrtpHashAlgo

      String getZrtpHashAlgo()
      Get the ZRTP algorithm statistics details (cipher)

      Returns:
      The hash algo
    • getZrtpKeyAgreementAlgo

      String getZrtpKeyAgreementAlgo()
      Get the ZRTP algorithm statistics details (cipher)

      Returns:
      The key agreement algo
    • getZrtpSasAlgo

      String getZrtpSasAlgo()
      Get the ZRTP algorithm statistics details (cipher)

      Returns:
      The sas algo
    • setUserData

      void setUserData(Object data)
      Sets the object to store in this object user's data
      Parameters:
      data - the object to store
    • getUserData

      Object getUserData()
      Gets the object stored in this object user's data
      Returns:
      the object store if any, null otherwise
    • getNativePointer

      long getNativePointer()
      Gets the native pointer used by this class to make native method calls.
      Returns:
      the nativer pointer, as long
    • toString

      String toString()
      Overrides:
      toString in class Object