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
45
46
47
48
49
50
51
52
53
54
55
//! Codec statistics.
//!
//! This module contains the [`RTCCodecStats`] type which provides
//! information about codecs used for RTP streams.
use RTCStats;
use cratePayloadType;
use ;
/// Statistics for a codec used in an RTP stream.
///
/// This struct corresponds to the `RTCCodecStats` dictionary in the
/// W3C WebRTC Statistics API. It provides information about codecs
/// currently in use for sending or receiving RTP streams.
///
/// Codec stats are only present when the codec is actively used by
/// at least one RTP stream.
///
/// # W3C Reference
///
/// See [RTCCodecStats](https://www.w3.org/TR/webrtc-stats/#codec-dict*)