Class StatsReport

java.lang.Object
com.twilio.video.StatsReport

public class StatsReport extends Object
Stats report contains stats for all the media tracks that exist in peer connection.
  • Method Details

    • getPeerConnectionId

      @NonNull public String getPeerConnectionId()
      Returns the id of peer connection related to this report.
    • getLocalAudioTrackStats

      @NonNull public List<LocalAudioTrackStats> getLocalAudioTrackStats()
      Returns stats for all local audio tracks in the peer connection.
      Returns:
      a list of local audio tracks stats
    • getLocalVideoTrackStats

      @NonNull public List<LocalVideoTrackStats> getLocalVideoTrackStats()
      Returns stats for all local video tracks in the peer connection.
      Returns:
      a list of local video tracks stats
    • getRemoteAudioTrackStats

      @NonNull public List<RemoteAudioTrackStats> getRemoteAudioTrackStats()
      Returns stats for all remote audio tracks in the peer connection.
      Returns:
      a list of remote audio tracks stats
    • getRemoteVideoTrackStats

      @NonNull public List<RemoteVideoTrackStats> getRemoteVideoTrackStats()
      Returns stats for all remote video tracks in the peer connection.
      Returns:
      a list of remote video tracks stats
    • getIceCandidatePairStats

      @NonNull public List<IceCandidatePairStats> getIceCandidatePairStats()
      Returns stats for all ice candidate pairs in the peer connection.
      Returns:
      a list of ice candidate pair stats
    • getIceCandidateStats

      @NonNull public List<IceCandidateStats> getIceCandidateStats()
      Returns stats for individual ice candidates in the peer connection
      Returns:
      a list of all ice candidate stats