-
public final class StatsTracerCollects 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 ComputedStatsget(Map<String, TrackType> trackIdToTrackType)Collects the latest statistics and returns: current performance numbers
delta-compressed stats (diff vs previous poll)
the raw RTCStatsReport
-
-
Constructor Detail
-
StatsTracer
StatsTracer(PeerConnection pc, PeerType peerType)
- Parameters:
pc- current PeerConnectionpeerType- 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
-
-
-