You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!
The RTCStatsType
enumerated type (enum) is a set of strings which define the type
of statistics reported in an RTCStats
object.
Values
"candidate-pair"
- An
RTCIceCandidatePairStats
object providing statistics related to anRTCIceTransport
. Candidate pairs other than the currently active pair for the transport are deleted when theRTCPeerCandidate
changes itsRTCPeerConnection.iceGatheringState
to"new"
during an ICE restart. The active candidate pair is deleted after the transport switches to another candidate pair; this change cannot be detected otherwise. "certificate"
- An
RTCCertificateStats
object providing statistics related to a certificate being used by anRTCIceTransport
. "codec"
- An
RTCCodecStats
object containing statistics about a codec currently being used by RTP streams to send or receive data for theRTCPeerConnection
. "csrc"
- An
RTCContributingSourceStats
object which contains statistics related to a contributing source (CSRC) that contributed to an inbound RTP stream. "data-channel"
- An
RTCDataChannelStats
object which contains statistics about eachRTCDataChannel
on the connection. "inbound-rtp"
- Statistics about an inbound RTP stream that's currently in use by this
RTCPeerConnection
, in anRTCInboundRtpStreamStats
object. "local-candidate"
- An
RTCIceCandidateStats
object giving statistics about an ICE local candidate; these candidates are found in the output fromRTCIceTransport.getLocalCandidates()
. "outbound-rtp"
- An
RTCOutboundRtpStreamStats
object giving statistics about an outbound RTP stream being sent from theRTCPeerConnection
. "peer-connection"
- A
RTCPeerConnectionStats
object provides statistics related to the overall peer connection'sRTCPeerConnection
. "receiver"
- Provides statistics about a specific
RTCRtpReceiver
. The statistics object is anRTCAudioReceiverStats
object ifkind
is "audio"; ifkind
is"video"
, the object is anRTCVideoReceiverStats
object. "remote-candidate"
- The object is an
RTCIceCandidateStats
object containing statistics about the remote candidate'sRTCIceTransport
. This may include information such as the type of network, the protocol, the URL, the type of relay being used, and so forth. "remote-inbound-rtp"
- Contains statistics about the remote endpoint's inbound RTP stream; that stream corresponds to the local endpoint's outbound RTP stream. Using this
RTCRemoteInboundRtpStreamStats
object, you can learn how the well the remote peer is receiving data. "remote-outbound-rtp"
- An
RTCRemoteOutboundRtpStreamStats
object that contains information about theRTCRtpSender
on the remote peer that corresponds to anRTCRtpReceiver
on the local peer. This lets you measure statistics at the remote endpoint. "sender"
- An object containing statistics about the
RTCRtpSender
for a stream on theRTCPeerConnection
. Ifkind
is"audio"
, this object is of typeRTCAudioSenderStats
; ifkind
is"video"
, this is anRTCVideoSenderStats
object. "stream"
- An object of type
RTCMediaStreamStats
, providing statistics and information about aMediaStream
which is part of theRTCPeerConnection
. "track"
- The object is one of the types based on
RTCMediaHandlerStats
: for audio tracks, the type isRTCSenderAudioTrackAttachmentStats
and for video tracks, the type isRTCSenderVideoTrackAttachmentStats
. The data within provides statistics related to a particularMediaStreamTrack
's attachment to anRTCRtpSender
; also included are the media level metrics that go along with the track. "transport"
- An object that contains statistics related to a transport for an
RTCPeerConnection
. The object is of typeRTCTransportStats
.
Specifications
Specification | Status | Comment |
---|---|---|
Identifiers for WebRTC's Statistics API The definition of 'RTCStatsType' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
No compatibility data found. Please contribute data for "api.RTCStatsType" (depth: 1) to the MDN compatibility data repository.