Package com.twilio.video
Class RtcStatsAdapter
java.lang.Object
com.twilio.video.RtcStatsAdapter
- All Implemented Interfaces:
RTCStatsCollectorCallback
RtcStatsAdapter represents the Java layer object that manages the delivery of RtcStatsReports to
the
RtcStatsListener
s. It does the following: 1. It holds references to the RtcStatsListener
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
RtcStatsListener
s when the RtcStatsReports for all the Peer Connections have been
received.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRtcStatsListener
(com.twilio.video.RtcStatsListener rtcStatsListener) void
cleanup()
void
onStatsDelivered
(RTCStatsReport statsReport) Called when the stats report is ready.void
-
Constructor Details
-
RtcStatsAdapter
public RtcStatsAdapter()
-
-
Method Details
-
onStatsDelivered
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()
-