Android SDK API Reference

Public Member Functions | List of all members
io.skyway.Peer.StatsCollectorCallback Interface Reference

Getting statistics callback interface. More...

Public Member Functions

void onStatsDelivered (JSONArray stats)
 Callback method when calling getStats function. More...
 

Detailed Description

Getting statistics callback interface.

Member Function Documentation

◆ onStatsDelivered()

void io.skyway.Peer.StatsCollectorCallback.onStatsDelivered ( JSONArray  stats)

Callback method when calling getStats function.

Parameters
statsStatistics

The stats argument is an array(JSONArray) of objects based on RTCStats Dictionary. https://www.w3.org/TR/webrtc/#rtcstats-dictionary

See document RTCStatsType enum about type key included in the array. https://www.w3.org/TR/webrtc-stats/#rtcstatstype-str*

See also Stats Dictionary for the statistical data that can be obtained. https://www.w3.org/TR/webrtc-stats/#stats-dictionaries