Module webrtc.java

Enum RTCStatsType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CANDIDATE_PAIR
      ICE candidate pair statistics related to the RTCIceTransport.
      CERTIFICATE
      Information about a certificate used by an RTCIceTransport.
      CODEC
      Statistics for a codec that is currently being used by RTP streams being sent or received by the RTCPeerConnection.
      CSRC
      Statistics for a contributing source (CSRC) that contributed to an inbound RTP stream.
      DATA_CHANNEL
      Statistics related to each RTCDataChannel ID.
      ICE_SERVER
      Information about the connection to an ICE server (e.g.
      INBOUND_RTP
      Statistics for an inbound RTP stream that is currently received with the RTCPeerConnection.
      LOCAL_CANDIDATE
      ICE local candidate statistics related to the RTCIceTransport.
      MEDIA_SOURCE
      Statistics for the media produced by a MediaStreamTrack that is currently attached to an RTCRtpSender.
      OUTBOUND_RTP
      Statistics for an outbound RTP stream that is currently sent with the RTCPeerConnection.
      PEER_CONNECTION
      Statistics related to the RTCPeerConnection.
      RECEIVER
      Contains statistics related to a specific receiver and the corresponding media-level metrics.
      REMOTE_CANDIDATE
      ICE remote candidate statistics related to the RTCIceTransport.
      REMOTE_INBOUND_RTP
      Statistics for the remote endpoint's inbound RTP stream corresponding to an outbound stream that is currently sent with the RTCPeerConnection.
      REMOTE_OUTBOUND_RTP
      Statistics for the remote endpoint's outbound RTP stream corresponding to an inbound stream that is currently received with the RTCPeerConnection.
      SENDER
      Contains statistics related to a specific RTCRtpSender and the corresponding media-level metrics.
      STREAM
      Contains statistics related to a specific MediaStream.
      TRACK
      Contains statistics related to a specific MediaStreamTrack's attachment to an RTCRtpSender and the corresponding media-level metrics.
      TRANSPORT
      Transport statistics related to the RTCPeerConnection.
    • Enum Constant Detail

      • CODEC

        public static final RTCStatsType CODEC
        Statistics for a codec that is currently being used by RTP streams being sent or received by the RTCPeerConnection.
      • INBOUND_RTP

        public static final RTCStatsType INBOUND_RTP
        Statistics for an inbound RTP stream that is currently received with the RTCPeerConnection.
      • OUTBOUND_RTP

        public static final RTCStatsType OUTBOUND_RTP
        Statistics for an outbound RTP stream that is currently sent with the RTCPeerConnection.
      • REMOTE_INBOUND_RTP

        public static final RTCStatsType REMOTE_INBOUND_RTP
        Statistics for the remote endpoint's inbound RTP stream corresponding to an outbound stream that is currently sent with the RTCPeerConnection. It is measured at the remote endpoint and reported in an RTCP Receiver Report (RR) or RTCP Extended Report (XR).
      • REMOTE_OUTBOUND_RTP

        public static final RTCStatsType REMOTE_OUTBOUND_RTP
        Statistics for the remote endpoint's outbound RTP stream corresponding to an inbound stream that is currently received with the RTCPeerConnection. It is measured at the remote endpoint and reported in an RTCP Sender Report (SR).
      • MEDIA_SOURCE

        public static final RTCStatsType MEDIA_SOURCE
        Statistics for the media produced by a MediaStreamTrack that is currently attached to an RTCRtpSender. This reflects the media that is fed to the encoder; after user-media-constraints have been applied (i.e. not the raw media produced by the camera). It is either an RTCAudioSourceStats or RTCVideoSourceStats depending on its kind.
      • CSRC

        public static final RTCStatsType CSRC
        Statistics for a contributing source (CSRC) that contributed to an inbound RTP stream.
      • PEER_CONNECTION

        public static final RTCStatsType PEER_CONNECTION
        Statistics related to the RTCPeerConnection.
      • DATA_CHANNEL

        public static final RTCStatsType DATA_CHANNEL
        Statistics related to each RTCDataChannel ID.
      • STREAM

        public static final RTCStatsType STREAM
        Contains statistics related to a specific MediaStream.
      • TRACK

        public static final RTCStatsType TRACK
        Contains statistics related to a specific MediaStreamTrack's attachment to an RTCRtpSender and the corresponding media-level metrics.
      • SENDER

        public static final RTCStatsType SENDER
        Contains statistics related to a specific RTCRtpSender and the corresponding media-level metrics.
      • RECEIVER

        public static final RTCStatsType RECEIVER
        Contains statistics related to a specific receiver and the corresponding media-level metrics.
      • TRANSPORT

        public static final RTCStatsType TRANSPORT
        Transport statistics related to the RTCPeerConnection.
      • CANDIDATE_PAIR

        public static final RTCStatsType CANDIDATE_PAIR
        ICE candidate pair statistics related to the RTCIceTransport.
      • LOCAL_CANDIDATE

        public static final RTCStatsType LOCAL_CANDIDATE
        ICE local candidate statistics related to the RTCIceTransport.
      • REMOTE_CANDIDATE

        public static final RTCStatsType REMOTE_CANDIDATE
        ICE remote candidate statistics related to the RTCIceTransport.
      • CERTIFICATE

        public static final RTCStatsType CERTIFICATE
        Information about a certificate used by an RTCIceTransport.
      • ICE_SERVER

        public static final RTCStatsType ICE_SERVER
        Information about the connection to an ICE server (e.g. STUN or TURN).
    • Method Detail

      • values

        public static RTCStatsType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RTCStatsType c : RTCStatsType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RTCStatsType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null