-
- All Implemented Interfaces:
-
tvi.webrtc.RTCStatsCollectorCallback
public class RtcStatsAdapter implements RTCStatsCollectorCallbackRtcStatsAdapter represents the Java layer object that manages the delivery of RtcStatsReports to the RtcStatsListeners. It does the following: 1. It holds references to the s until the time the RtcStatsReports are ready for delivery. 2. It receives the RTCStatsReport from the JNI layer. 3. It delivers the RTCStatsReport to the RtcStatsListeners when the RtcStatsReports for all the Peer Connections have been received.
-
-
Method Summary
Modifier and Type Method Description synchronized voidonStatsDelivered(RTCStatsReport statsReport)synchronized voidraiseOnRtcStats()synchronized voidaddRtcStatsListener(RtcStatsListener rtcStatsListener)synchronized voidcleanup()-
-
Method Detail
-
onStatsDelivered
synchronized void onStatsDelivered(RTCStatsReport statsReport)
-
raiseOnRtcStats
synchronized void raiseOnRtcStats()
-
addRtcStatsListener
synchronized void addRtcStatsListener(RtcStatsListener rtcStatsListener)
-
cleanup
synchronized void cleanup()
-
-
-
-