The RTCStatsReport
interface provides a statistics report obtained by calling one of the RTCPeerConnection.getStats()
, RTCRtpReceiver.getStats()
, and RTCRtpSender.getStats()
methods.
This statistics report contains a mapping of statistic category string names to objects containing the corresponding statistics data.
Calling getStats()
on an RTCPeerConnection
lets you specify whether you wish to obtain statistics for outbound, inbound, or all streams on the connection. The RTCRtpReceiver
and RTCRtpSender
versions of getStats()
specifically only return statistics available to the incoming or outgoing stream on which you call them.