getVideoStats

This method can be used to get the video statistics for this participant.

For the local participant, this returns the outgoing video stats. For a remote participant, this returns the incoming video stats.

Note: This is an asynchronous operation.

Code Example:


val videoStats = participant.getVideoStats()
if (videoStats != null) {
    Log.d("Stats", "Video stats: $videoStats")
}

Return

a JSONArray containing video statistics, or null if no video stream is active or an error occurs