getShareStats

This method can be used to get the screen-share statistics for this participant.

For the local participant, this returns the outgoing screen-share stats. For a remote participant, this returns the incoming screen-share stats.

Note: This is an asynchronous operation.

Code Example:


val shareStats = participant.getShareStats()
if (shareStats != null) {
    Log.d("Stats", "Share stats: $shareStats")
}

Return

a JSONObject containing screen-share statistics, or null if no screen-share stream is active or an error occurs