1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Per-peer RTCP-derived stats.
//!
//! Populated from str0m's `Event::PeerStats` (emitted approximately every second).
//! The `PeerStats` struct carries `egress_loss_fraction` and `rtt` from RTCP
//! Receiver Reports; it is the coarsest-granularity, per-peer aggregate available
//! in str0m 0.18.
//!
//! # Jitter
//!
//! Jitter is available only via `Event::MediaEgressStats { remote: RemoteIngressStats }`,
//! which is per-MID and carries the raw RTCP `jitter` u32 in RTP timestamp units.
//! Converting to wall-clock requires a codec clock rate, which is MID-dependent.
//! For v0.2 `jitter` is always `Duration::ZERO`; a per-MID extension is deferred
//! to v0.3.
use Duration;
/// Rolling statistics for one peer derived from RTCP Receiver Reports.
///
/// Values are snapshots from the most recent `Event::PeerStats`; they are
/// replaced (not averaged) on each update.