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 theRtcStatsListener
s. It does the following: 1. It holds references to theRtcStatsListener
s until the time the RtcStatsReports are ready for delivery. 2. It receives theRTCStatsReport
from the JNI layer. 3. It delivers theRTCStatsReport
to theRtcStatsListener
s 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 void
addRtcStatsListener(com.twilio.video.RtcStatsListener rtcStatsListener)
void
cleanup()
void
onStatsDelivered(RTCStatsReport statsReport)
Called when the stats report is ready.void
raiseOnRtcStats()
-
-
-
Method Detail
-
onStatsDelivered
public void onStatsDelivered(RTCStatsReport statsReport)
Description copied from interface:RTCStatsCollectorCallback
Called when the stats report is ready.- Specified by:
onStatsDelivered
in interfaceRTCStatsCollectorCallback
-
raiseOnRtcStats
public void raiseOnRtcStats()
-
addRtcStatsListener
public void addRtcStatsListener(com.twilio.video.RtcStatsListener rtcStatsListener)
-
cleanup
public void cleanup()
-
-