Package com.twilio.video
Class RtcStatsAdapter
- java.lang.Object
-
- com.twilio.video.RtcStatsAdapter
-
- All Implemented Interfaces:
RTCStatsCollectorCallback
public class RtcStatsAdapter extends java.lang.Object implements RTCStatsCollectorCallback
RtcStatsAdapter represents the Java layer object that manages the delivery of RtcStatsReports to theRtcStatsListeners. It does the following: 1. It holds references to theRtcStatsListeners until the time the RtcStatsReports are ready for delivery. 2. It receives theRTCStatsReportfrom the JNI layer. 3. It delivers theRTCStatsReportto theRtcStatsListeners when the RtcStatsReports for all the Peer Connections have been received.
-
-
Constructor Summary
Constructors Constructor Description RtcStatsAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRtcStatsListener(com.twilio.video.RtcStatsListener rtcStatsListener)voidcleanup()voidonStatsDelivered(RTCStatsReport statsReport)Called when the stats report is ready.voidraiseOnRtcStats()
-
-
-
Method Detail
-
onStatsDelivered
public void onStatsDelivered(RTCStatsReport statsReport)
Description copied from interface:RTCStatsCollectorCallbackCalled when the stats report is ready.- Specified by:
onStatsDeliveredin interfaceRTCStatsCollectorCallback
-
raiseOnRtcStats
public void raiseOnRtcStats()
-
addRtcStatsListener
public void addRtcStatsListener(com.twilio.video.RtcStatsListener rtcStatsListener)
-
cleanup
public void cleanup()
-
-