RtcDataProvider

interface RtcDataProvider

Functions

Link copied to clipboard
abstract fun getStats(callback: GetStatsCallback)

Used by WatchRTC to periodically fetch statistics of the current peer connection. Implementation of this interface should collect stats and once available, call callback.onStatsAvailable(stats). Output is expected to be a JSON string, structured as an RTCStatsReport object. docs