webrtc_stats (webrtc v0.1.0)
View SourceThe W3C WebRTC statistics (https://www.w3.org/TR/webrtc-stats/) of a peer connection, built from the engines' own statistics.
The report maps each stats id to a map whose keys are the members of the W3C dictionary (packetsSent, roundTripTime, ...), with id, type and timestamp (ms since the Unix epoch, as DOMHighResTimeStamp). Times are in seconds and rates in bits per second, as the dictionaries define them. Types: codec, inbound-rtp, outbound-rtp, remote-inbound-rtp, remote-outbound-rtp, peer-connection, data-channel, transport, candidate-pair, local-candidate, remote-candidate and certificate. Frame members of received streams come from the frame buffer (frames on the transceiver), those of sent streams from the packets sent. This library does not capture, encode, decode or play media: the decoder and encoder members, media-source and media-playout come from a codec plugin (webrtc_media_codec) or webrtc:report_media_stats/4 (docs/compliance/stats.md lists each member).