WebRTC Statistics
Last updated
Last updated
Standardized measurements are performed using the getStats API of RTCPeerConnection, and all media endpoints within VDN implement this API according to the specification.
WebRTC Statistics specification -
Stats types:
inbound-rtp: Statistics for locally received RTP
outbound-rtp: Statistics for locally sent RTP
remote-inbound-rtp: Statistics for RTP received from the remote endpoint (RTCP RR, RFC 3550)
remote-outbound-rtp: Statistics for RTP sent by the remote endpoint (RTCP SR, RFC 3550)
Stats details:
inbound-rtp: The RTCInboundRtpStreamStats dictionary represents the measurement metrics for the incoming RTP media stream. The timestamp reported in the statistics object is the time at which the data was sampled. stats dictionary: RTCStats, RTCRtpStreamStats, RTCReceivedRtpStreamStats collected items: timestamp, id, ssrc, kind, packetsReceived, packetsLost, jitter, bytesReceived
outbound-rtp: The RTCOutboundRtpStreamStats dictionary represents the measurement metrics for the outgoing . The timestamp reported in the statistics object is the time at which the data was sampled. stats dictionary: RTCStats, RTCRtpStreamStats, RTCSentRtpStreamStats, RTCOutboundRtpStreamStats collected items: timestamp, id, ssrc, kind, packetsSent, bytesSent, retransmittedPacketsSent, retransmittedBytesSent
remote-inbound-rtp: The RTCRemoteInboundRtpStreamStats dictionary represents the remote endpoint's measurement metrics for a particular incoming (corresponding to an outgoing at the sending endpoint). The timestamp reported in the statistics object is the time at which the corresponding was received. stats dictionary: RTCStats, RTCReceivedRtpStreamStats, RTCRemoteInboundRtpStreamStats collected items: timestamp, id, ssrc, kind, packetsReceived, packetsLost, jitter, roundTripTime
remote-outbound-rtp: The RTCRemoteOutboundRtpStreamStats dictionary represents the remote endpoint's measurement metrics for its outgoing (corresponding to an outgoing at the sending endpoint). The timestamp reported in the statistics object is the time at which the corresponding was received. stats dictionary: RTCStats, RTCRtpStreamStats, RTCSentRtpStreamStats, RTCRemoteOutboundRtpStreamStats collected items: timestamp, id, ssrc, kind, packetsSent, byteSent, roundTripTime