Package 

Class StatsTracer


  • 
    public final class StatsTracer
    
                        

    Collects and processes WebRTC stats for publishers and subscribers.

    • Constructor Summary

      Constructors 
      Constructor Description
      StatsTracer(PeerConnection pc, PeerType peerType)
    • Method Summary

      Modifier and Type Method Description
      final ComputedStats get(Map<String, TrackType> trackIdToTrackType) Collects the latest statistics and returns:
      • current performance numbers

      • delta-compressed stats (diff vs previous poll)

      • the raw RTCStatsReport

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatsTracer

        StatsTracer(PeerConnection pc, PeerType peerType)
        Parameters:
        pc - current PeerConnection
        peerType - whether this side is PUBLISHER or SUBSCRIBER
    • Method Detail

      • get

         final ComputedStats get(Map<String, TrackType> trackIdToTrackType)

        Collects the latest statistics and returns:

        • current performance numbers

        • delta-compressed stats (diff vs previous poll)

        • the raw RTCStatsReport