Class RTCTransportStats


  • public class RTCTransportStats
    extends RTCStats
    Statistics related to RTC data channels.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RTCTransportStats()
      Default private constructor of RTCTransportStats for serialization with Jackson
        RTCTransportStats​(String id, StatsType type, long timestampMillis, long bytesSent, long bytesReceived, String rtcpTransportStatsId, boolean activeConnection, String selectedCandidatePairId, String localCertificateId, String remoteCertificateId)
      Create a RTCTransportStats
    • Constructor Detail

      • RTCTransportStats

        protected RTCTransportStats()
        Default private constructor of RTCTransportStats for serialization with Jackson
      • RTCTransportStats

        public RTCTransportStats​(String id,
                                 StatsType type,
                                 long timestampMillis,
                                 long bytesSent,
                                 long bytesReceived,
                                 String rtcpTransportStatsId,
                                 boolean activeConnection,
                                 String selectedCandidatePairId,
                                 String localCertificateId,
                                 String remoteCertificateId)
        Create a RTCTransportStats
    • Method Detail

      • getBytesSent

        public long getBytesSent()
        get Represents the total number of payload bytes sent on this PeerConnection, i.e., not including headers or padding.
      • setBytesSent

        public void setBytesSent​(long bytesSent)
        set Represents the total number of payload bytes sent on this PeerConnection, i.e., not including headers or padding.
      • getBytesReceived

        public long getBytesReceived()
        get Represents the total number of bytes received on this PeerConnection, i.e., not including headers or padding.
      • setBytesReceived

        public void setBytesReceived​(long bytesReceived)
        set Represents the total number of bytes received on this PeerConnection, i.e., not including headers or padding.
      • getRtcpTransportStatsId

        public String getRtcpTransportStatsId()
        get If RTP and RTCP are not multiplexed, this is the id of the transport that gives stats for the RTCP component, and this record has only the RTP component stats.
      • setRtcpTransportStatsId

        public void setRtcpTransportStatsId​(String rtcpTransportStatsId)
        set If RTP and RTCP are not multiplexed, this is the id of the transport that gives stats for the RTCP component, and this record has only the RTP component stats.
      • getActiveConnection

        public boolean getActiveConnection()
        get Set to true when transport is active.
      • setActiveConnection

        public void setActiveConnection​(boolean activeConnection)
        set Set to true when transport is active.
      • getSelectedCandidatePairId

        public String getSelectedCandidatePairId()
        get It is a unique identifier that is associated to the object that was inspected to produce the RTCIceCandidatePairStats associated with this transport.
      • setSelectedCandidatePairId

        public void setSelectedCandidatePairId​(String selectedCandidatePairId)
        set It is a unique identifier that is associated to the object that was inspected to produce the RTCIceCandidatePairStats associated with this transport.
      • getLocalCertificateId

        public String getLocalCertificateId()
        get For components where DTLS is negotiated, give local certificate.
      • setLocalCertificateId

        public void setLocalCertificateId​(String localCertificateId)
        set For components where DTLS is negotiated, give local certificate.
      • getRemoteCertificateId

        public String getRemoteCertificateId()
        get For components where DTLS is negotiated, give remote certificate.
      • setRemoteCertificateId

        public void setRemoteCertificateId​(String remoteCertificateId)
        set For components where DTLS is negotiated, give remote certificate.