blob: 3a12eea1c0ba6fea00a70c191b185c9e3084f449 [file] [log] [blame]
hbosd565b732016-08-30 14:04:35 -07001/*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "api/stats/rtcstats_objects.h"
hbosd565b732016-08-30 14:04:35 -070012
Yves Gerey3e707812018-11-28 16:47:49 +010013#include <utility>
14
Jakob Ivarsson758d9462019-03-19 15:38:49 +010015#include "api/stats/rtc_stats.h"
Jonas Olssona4d87372019-07-05 19:08:33 +020016#include "rtc_base/checks.h"
Jakob Ivarsson758d9462019-03-19 15:38:49 +010017
hbosd565b732016-08-30 14:04:35 -070018namespace webrtc {
19
agrieve26622d32017-08-08 10:48:15 -070020const char* const RTCDataChannelState::kConnecting = "connecting";
21const char* const RTCDataChannelState::kOpen = "open";
22const char* const RTCDataChannelState::kClosing = "closing";
23const char* const RTCDataChannelState::kClosed = "closed";
hboscc555c52016-10-18 12:48:31 -070024
agrieve26622d32017-08-08 10:48:15 -070025const char* const RTCStatsIceCandidatePairState::kFrozen = "frozen";
26const char* const RTCStatsIceCandidatePairState::kWaiting = "waiting";
27const char* const RTCStatsIceCandidatePairState::kInProgress = "in-progress";
28const char* const RTCStatsIceCandidatePairState::kFailed = "failed";
29const char* const RTCStatsIceCandidatePairState::kSucceeded = "succeeded";
hbosc47a0c32016-10-11 14:54:49 -070030
31// Strings defined in https://tools.ietf.org/html/rfc5245.
agrieve26622d32017-08-08 10:48:15 -070032const char* const RTCIceCandidateType::kHost = "host";
33const char* const RTCIceCandidateType::kSrflx = "srflx";
34const char* const RTCIceCandidateType::kPrflx = "prflx";
35const char* const RTCIceCandidateType::kRelay = "relay";
hbosab9f6e42016-10-07 02:18:47 -070036
agrieve26622d32017-08-08 10:48:15 -070037const char* const RTCDtlsTransportState::kNew = "new";
38const char* const RTCDtlsTransportState::kConnecting = "connecting";
39const char* const RTCDtlsTransportState::kConnected = "connected";
40const char* const RTCDtlsTransportState::kClosed = "closed";
41const char* const RTCDtlsTransportState::kFailed = "failed";
hbos7064d592017-01-16 07:38:02 -080042
agrieve26622d32017-08-08 10:48:15 -070043const char* const RTCMediaStreamTrackKind::kAudio = "audio";
44const char* const RTCMediaStreamTrackKind::kVideo = "video";
hbos160e4a72017-01-17 02:53:23 -080045
Gary Liu37e489c2017-11-21 10:49:36 -080046// https://w3c.github.io/webrtc-stats/#dom-rtcnetworktype
47const char* const RTCNetworkType::kBluetooth = "bluetooth";
48const char* const RTCNetworkType::kCellular = "cellular";
49const char* const RTCNetworkType::kEthernet = "ethernet";
50const char* const RTCNetworkType::kWifi = "wifi";
51const char* const RTCNetworkType::kWimax = "wimax";
52const char* const RTCNetworkType::kVpn = "vpn";
53const char* const RTCNetworkType::kUnknown = "unknown";
54
Henrik Boströmce33b6a2019-05-28 17:42:38 +020055// https://w3c.github.io/webrtc-stats/#dom-rtcqualitylimitationreason
56const char* const RTCQualityLimitationReason::kNone = "none";
57const char* const RTCQualityLimitationReason::kCpu = "cpu";
58const char* const RTCQualityLimitationReason::kBandwidth = "bandwidth";
59const char* const RTCQualityLimitationReason::kOther = "other";
60
Henrik Boström2e069262019-04-09 13:59:31 +020061// https://webrtc.org/experiments/rtp-hdrext/video-content-type/
62const char* const RTCContentType::kUnspecified = "unspecified";
63const char* const RTCContentType::kScreenshare = "screenshare";
64
Steve Antond6a5cbd2017-08-18 09:40:25 -070065// clang-format off
hbos2fa7c672016-10-24 04:00:05 -070066WEBRTC_RTCSTATS_IMPL(RTCCertificateStats, RTCStats, "certificate",
67 &fingerprint,
68 &fingerprint_algorithm,
69 &base64_certificate,
Nico Weber22f99252019-02-20 10:13:16 -050070 &issuer_certificate_id)
Steve Antond6a5cbd2017-08-18 09:40:25 -070071// clang-format on
hbos2fa7c672016-10-24 04:00:05 -070072
Yves Gerey665174f2018-06-19 15:03:05 +020073RTCCertificateStats::RTCCertificateStats(const std::string& id,
74 int64_t timestamp_us)
75 : RTCCertificateStats(std::string(id), timestamp_us) {}
hbos2fa7c672016-10-24 04:00:05 -070076
Yves Gerey665174f2018-06-19 15:03:05 +020077RTCCertificateStats::RTCCertificateStats(std::string&& id, int64_t timestamp_us)
hbos2fa7c672016-10-24 04:00:05 -070078 : RTCStats(std::move(id), timestamp_us),
79 fingerprint("fingerprint"),
80 fingerprint_algorithm("fingerprintAlgorithm"),
81 base64_certificate("base64Certificate"),
Yves Gerey665174f2018-06-19 15:03:05 +020082 issuer_certificate_id("issuerCertificateId") {}
hbos2fa7c672016-10-24 04:00:05 -070083
Yves Gerey665174f2018-06-19 15:03:05 +020084RTCCertificateStats::RTCCertificateStats(const RTCCertificateStats& other)
hbos2fa7c672016-10-24 04:00:05 -070085 : RTCStats(other.id(), other.timestamp_us()),
86 fingerprint(other.fingerprint),
87 fingerprint_algorithm(other.fingerprint_algorithm),
88 base64_certificate(other.base64_certificate),
Yves Gerey665174f2018-06-19 15:03:05 +020089 issuer_certificate_id(other.issuer_certificate_id) {}
hbos2fa7c672016-10-24 04:00:05 -070090
Yves Gerey665174f2018-06-19 15:03:05 +020091RTCCertificateStats::~RTCCertificateStats() {}
hbos2fa7c672016-10-24 04:00:05 -070092
Steve Antond6a5cbd2017-08-18 09:40:25 -070093// clang-format off
hbos0adb8282016-11-23 02:32:06 -080094WEBRTC_RTCSTATS_IMPL(RTCCodecStats, RTCStats, "codec",
Philipp Hancke95157a02020-11-16 20:08:27 +010095 &transport_id,
hbos0adb8282016-11-23 02:32:06 -080096 &payload_type,
hbos13f54b22017-02-28 06:56:04 -080097 &mime_type,
hbos0adb8282016-11-23 02:32:06 -080098 &clock_rate,
99 &channels,
Henrik Boström6b430862019-08-16 13:09:51 +0200100 &sdp_fmtp_line)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700101// clang-format on
hbos0adb8282016-11-23 02:32:06 -0800102
Yves Gerey665174f2018-06-19 15:03:05 +0200103RTCCodecStats::RTCCodecStats(const std::string& id, int64_t timestamp_us)
104 : RTCCodecStats(std::string(id), timestamp_us) {}
hbos0adb8282016-11-23 02:32:06 -0800105
Yves Gerey665174f2018-06-19 15:03:05 +0200106RTCCodecStats::RTCCodecStats(std::string&& id, int64_t timestamp_us)
hbos0adb8282016-11-23 02:32:06 -0800107 : RTCStats(std::move(id), timestamp_us),
Philipp Hancke95157a02020-11-16 20:08:27 +0100108 transport_id("transportId"),
hbos0adb8282016-11-23 02:32:06 -0800109 payload_type("payloadType"),
hbos13f54b22017-02-28 06:56:04 -0800110 mime_type("mimeType"),
hbos0adb8282016-11-23 02:32:06 -0800111 clock_rate("clockRate"),
112 channels("channels"),
Henrik Boström6b430862019-08-16 13:09:51 +0200113 sdp_fmtp_line("sdpFmtpLine") {}
hbos0adb8282016-11-23 02:32:06 -0800114
Yves Gerey665174f2018-06-19 15:03:05 +0200115RTCCodecStats::RTCCodecStats(const RTCCodecStats& other)
hbos0adb8282016-11-23 02:32:06 -0800116 : RTCStats(other.id(), other.timestamp_us()),
Philipp Hancke95157a02020-11-16 20:08:27 +0100117 transport_id(other.transport_id),
hbos0adb8282016-11-23 02:32:06 -0800118 payload_type(other.payload_type),
hbos13f54b22017-02-28 06:56:04 -0800119 mime_type(other.mime_type),
hbos0adb8282016-11-23 02:32:06 -0800120 clock_rate(other.clock_rate),
121 channels(other.channels),
Henrik Boström6b430862019-08-16 13:09:51 +0200122 sdp_fmtp_line(other.sdp_fmtp_line) {}
hbos0adb8282016-11-23 02:32:06 -0800123
Yves Gerey665174f2018-06-19 15:03:05 +0200124RTCCodecStats::~RTCCodecStats() {}
hbos0adb8282016-11-23 02:32:06 -0800125
Steve Antond6a5cbd2017-08-18 09:40:25 -0700126// clang-format off
hbos2fa7c672016-10-24 04:00:05 -0700127WEBRTC_RTCSTATS_IMPL(RTCDataChannelStats, RTCStats, "data-channel",
128 &label,
129 &protocol,
Harald Alvestrand10ef8472020-06-05 15:38:51 +0200130 &data_channel_identifier,
hbos2fa7c672016-10-24 04:00:05 -0700131 &state,
132 &messages_sent,
133 &bytes_sent,
134 &messages_received,
Nico Weber22f99252019-02-20 10:13:16 -0500135 &bytes_received)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700136// clang-format on
hbos2fa7c672016-10-24 04:00:05 -0700137
Yves Gerey665174f2018-06-19 15:03:05 +0200138RTCDataChannelStats::RTCDataChannelStats(const std::string& id,
139 int64_t timestamp_us)
140 : RTCDataChannelStats(std::string(id), timestamp_us) {}
hbos2fa7c672016-10-24 04:00:05 -0700141
Yves Gerey665174f2018-06-19 15:03:05 +0200142RTCDataChannelStats::RTCDataChannelStats(std::string&& id, int64_t timestamp_us)
hbos2fa7c672016-10-24 04:00:05 -0700143 : RTCStats(std::move(id), timestamp_us),
144 label("label"),
145 protocol("protocol"),
Harald Alvestrand10ef8472020-06-05 15:38:51 +0200146 data_channel_identifier("dataChannelIdentifier"),
hbos2fa7c672016-10-24 04:00:05 -0700147 state("state"),
148 messages_sent("messagesSent"),
149 bytes_sent("bytesSent"),
150 messages_received("messagesReceived"),
Yves Gerey665174f2018-06-19 15:03:05 +0200151 bytes_received("bytesReceived") {}
hbos2fa7c672016-10-24 04:00:05 -0700152
Yves Gerey665174f2018-06-19 15:03:05 +0200153RTCDataChannelStats::RTCDataChannelStats(const RTCDataChannelStats& other)
hbos2fa7c672016-10-24 04:00:05 -0700154 : RTCStats(other.id(), other.timestamp_us()),
155 label(other.label),
156 protocol(other.protocol),
Harald Alvestrand10ef8472020-06-05 15:38:51 +0200157 data_channel_identifier(other.data_channel_identifier),
hbos2fa7c672016-10-24 04:00:05 -0700158 state(other.state),
159 messages_sent(other.messages_sent),
160 bytes_sent(other.bytes_sent),
161 messages_received(other.messages_received),
Yves Gerey665174f2018-06-19 15:03:05 +0200162 bytes_received(other.bytes_received) {}
hbos2fa7c672016-10-24 04:00:05 -0700163
Yves Gerey665174f2018-06-19 15:03:05 +0200164RTCDataChannelStats::~RTCDataChannelStats() {}
hbos2fa7c672016-10-24 04:00:05 -0700165
Steve Antond6a5cbd2017-08-18 09:40:25 -0700166// clang-format off
hbosc47a0c32016-10-11 14:54:49 -0700167WEBRTC_RTCSTATS_IMPL(RTCIceCandidatePairStats, RTCStats, "candidate-pair",
168 &transport_id,
169 &local_candidate_id,
170 &remote_candidate_id,
171 &state,
172 &priority,
173 &nominated,
174 &writable,
175 &readable,
176 &bytes_sent,
177 &bytes_received,
hbos3168c7a2016-12-15 06:17:08 -0800178 &total_round_trip_time,
179 &current_round_trip_time,
hbosc47a0c32016-10-11 14:54:49 -0700180 &available_outgoing_bitrate,
181 &available_incoming_bitrate,
182 &requests_received,
183 &requests_sent,
184 &responses_received,
185 &responses_sent,
186 &retransmissions_received,
187 &retransmissions_sent,
188 &consent_requests_received,
189 &consent_requests_sent,
190 &consent_responses_received,
Nico Weber22f99252019-02-20 10:13:16 -0500191 &consent_responses_sent)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700192// clang-format on
hbosc47a0c32016-10-11 14:54:49 -0700193
Yves Gerey665174f2018-06-19 15:03:05 +0200194RTCIceCandidatePairStats::RTCIceCandidatePairStats(const std::string& id,
195 int64_t timestamp_us)
196 : RTCIceCandidatePairStats(std::string(id), timestamp_us) {}
hbosc47a0c32016-10-11 14:54:49 -0700197
Yves Gerey665174f2018-06-19 15:03:05 +0200198RTCIceCandidatePairStats::RTCIceCandidatePairStats(std::string&& id,
199 int64_t timestamp_us)
hbosc47a0c32016-10-11 14:54:49 -0700200 : RTCStats(std::move(id), timestamp_us),
201 transport_id("transportId"),
202 local_candidate_id("localCandidateId"),
203 remote_candidate_id("remoteCandidateId"),
204 state("state"),
205 priority("priority"),
206 nominated("nominated"),
207 writable("writable"),
208 readable("readable"),
209 bytes_sent("bytesSent"),
210 bytes_received("bytesReceived"),
hbos3168c7a2016-12-15 06:17:08 -0800211 total_round_trip_time("totalRoundTripTime"),
212 current_round_trip_time("currentRoundTripTime"),
hbosc47a0c32016-10-11 14:54:49 -0700213 available_outgoing_bitrate("availableOutgoingBitrate"),
214 available_incoming_bitrate("availableIncomingBitrate"),
215 requests_received("requestsReceived"),
216 requests_sent("requestsSent"),
217 responses_received("responsesReceived"),
218 responses_sent("responsesSent"),
219 retransmissions_received("retransmissionsReceived"),
220 retransmissions_sent("retransmissionsSent"),
221 consent_requests_received("consentRequestsReceived"),
222 consent_requests_sent("consentRequestsSent"),
223 consent_responses_received("consentResponsesReceived"),
Yves Gerey665174f2018-06-19 15:03:05 +0200224 consent_responses_sent("consentResponsesSent") {}
hbosc47a0c32016-10-11 14:54:49 -0700225
226RTCIceCandidatePairStats::RTCIceCandidatePairStats(
227 const RTCIceCandidatePairStats& other)
228 : RTCStats(other.id(), other.timestamp_us()),
229 transport_id(other.transport_id),
230 local_candidate_id(other.local_candidate_id),
231 remote_candidate_id(other.remote_candidate_id),
232 state(other.state),
233 priority(other.priority),
234 nominated(other.nominated),
235 writable(other.writable),
236 readable(other.readable),
237 bytes_sent(other.bytes_sent),
238 bytes_received(other.bytes_received),
hbos3168c7a2016-12-15 06:17:08 -0800239 total_round_trip_time(other.total_round_trip_time),
240 current_round_trip_time(other.current_round_trip_time),
hbosc47a0c32016-10-11 14:54:49 -0700241 available_outgoing_bitrate(other.available_outgoing_bitrate),
242 available_incoming_bitrate(other.available_incoming_bitrate),
243 requests_received(other.requests_received),
244 requests_sent(other.requests_sent),
245 responses_received(other.responses_received),
246 responses_sent(other.responses_sent),
247 retransmissions_received(other.retransmissions_received),
248 retransmissions_sent(other.retransmissions_sent),
249 consent_requests_received(other.consent_requests_received),
250 consent_requests_sent(other.consent_requests_sent),
251 consent_responses_received(other.consent_responses_received),
Yves Gerey665174f2018-06-19 15:03:05 +0200252 consent_responses_sent(other.consent_responses_sent) {}
hbosc47a0c32016-10-11 14:54:49 -0700253
Yves Gerey665174f2018-06-19 15:03:05 +0200254RTCIceCandidatePairStats::~RTCIceCandidatePairStats() {}
hbosc47a0c32016-10-11 14:54:49 -0700255
Steve Antond6a5cbd2017-08-18 09:40:25 -0700256// clang-format off
Henrik Boström1df1bf82018-03-20 13:24:20 +0100257WEBRTC_RTCSTATS_IMPL(RTCIceCandidateStats, RTCStats, "abstract-ice-candidate",
hbosb4e426e2017-01-02 09:59:31 -0800258 &transport_id,
hbosc3a2b7f2017-01-02 04:46:15 -0800259 &is_remote,
Gary Liu37e489c2017-11-21 10:49:36 -0800260 &network_type,
hbosab9f6e42016-10-07 02:18:47 -0700261 &ip,
Philipp Hanckea9ba4502021-03-22 13:22:54 +0100262 &address,
hbosab9f6e42016-10-07 02:18:47 -0700263 &port,
264 &protocol,
Philipp Hancke95513752018-09-27 14:40:08 +0200265 &relay_protocol,
hbosab9f6e42016-10-07 02:18:47 -0700266 &candidate_type,
267 &priority,
hbosd17a5a72017-01-02 08:09:59 -0800268 &url,
Nico Weber22f99252019-02-20 10:13:16 -0500269 &deleted)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700270// clang-format on
hbosab9f6e42016-10-07 02:18:47 -0700271
Yves Gerey665174f2018-06-19 15:03:05 +0200272RTCIceCandidateStats::RTCIceCandidateStats(const std::string& id,
273 int64_t timestamp_us,
274 bool is_remote)
275 : RTCIceCandidateStats(std::string(id), timestamp_us, is_remote) {}
hbosab9f6e42016-10-07 02:18:47 -0700276
Gary Liu37e489c2017-11-21 10:49:36 -0800277RTCIceCandidateStats::RTCIceCandidateStats(std::string&& id,
278 int64_t timestamp_us,
279 bool is_remote)
hbosab9f6e42016-10-07 02:18:47 -0700280 : RTCStats(std::move(id), timestamp_us),
hbosb4e426e2017-01-02 09:59:31 -0800281 transport_id("transportId"),
hbosc3a2b7f2017-01-02 04:46:15 -0800282 is_remote("isRemote", is_remote),
Gary Liu37e489c2017-11-21 10:49:36 -0800283 network_type("networkType"),
hbosab9f6e42016-10-07 02:18:47 -0700284 ip("ip"),
Philipp Hanckea9ba4502021-03-22 13:22:54 +0100285 address("address"),
hbosab9f6e42016-10-07 02:18:47 -0700286 port("port"),
287 protocol("protocol"),
Philipp Hancke95513752018-09-27 14:40:08 +0200288 relay_protocol("relayProtocol"),
hbosab9f6e42016-10-07 02:18:47 -0700289 candidate_type("candidateType"),
290 priority("priority"),
hbosd17a5a72017-01-02 08:09:59 -0800291 url("url"),
Gary Liu37e489c2017-11-21 10:49:36 -0800292 deleted("deleted", false) {}
hbosab9f6e42016-10-07 02:18:47 -0700293
294RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other)
295 : RTCStats(other.id(), other.timestamp_us()),
hbosb4e426e2017-01-02 09:59:31 -0800296 transport_id(other.transport_id),
hbosc3a2b7f2017-01-02 04:46:15 -0800297 is_remote(other.is_remote),
Gary Liu37e489c2017-11-21 10:49:36 -0800298 network_type(other.network_type),
hbosab9f6e42016-10-07 02:18:47 -0700299 ip(other.ip),
Philipp Hanckea9ba4502021-03-22 13:22:54 +0100300 address(other.address),
hbosab9f6e42016-10-07 02:18:47 -0700301 port(other.port),
302 protocol(other.protocol),
Philipp Hancke95513752018-09-27 14:40:08 +0200303 relay_protocol(other.relay_protocol),
hbosab9f6e42016-10-07 02:18:47 -0700304 candidate_type(other.candidate_type),
305 priority(other.priority),
hbosd17a5a72017-01-02 08:09:59 -0800306 url(other.url),
Gary Liu37e489c2017-11-21 10:49:36 -0800307 deleted(other.deleted) {}
hbosab9f6e42016-10-07 02:18:47 -0700308
Yves Gerey665174f2018-06-19 15:03:05 +0200309RTCIceCandidateStats::~RTCIceCandidateStats() {}
hbosab9f6e42016-10-07 02:18:47 -0700310
311const char RTCLocalIceCandidateStats::kType[] = "local-candidate";
312
Yves Gerey665174f2018-06-19 15:03:05 +0200313RTCLocalIceCandidateStats::RTCLocalIceCandidateStats(const std::string& id,
314 int64_t timestamp_us)
315 : RTCIceCandidateStats(id, timestamp_us, false) {}
hbosab9f6e42016-10-07 02:18:47 -0700316
Yves Gerey665174f2018-06-19 15:03:05 +0200317RTCLocalIceCandidateStats::RTCLocalIceCandidateStats(std::string&& id,
318 int64_t timestamp_us)
319 : RTCIceCandidateStats(std::move(id), timestamp_us, false) {}
hbosab9f6e42016-10-07 02:18:47 -0700320
Henrik Boström1df1bf82018-03-20 13:24:20 +0100321std::unique_ptr<RTCStats> RTCLocalIceCandidateStats::copy() const {
322 return std::unique_ptr<RTCStats>(new RTCLocalIceCandidateStats(*this));
323}
324
hbosab9f6e42016-10-07 02:18:47 -0700325const char* RTCLocalIceCandidateStats::type() const {
326 return kType;
327}
328
329const char RTCRemoteIceCandidateStats::kType[] = "remote-candidate";
330
Yves Gerey665174f2018-06-19 15:03:05 +0200331RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats(const std::string& id,
332 int64_t timestamp_us)
333 : RTCIceCandidateStats(id, timestamp_us, true) {}
hbosab9f6e42016-10-07 02:18:47 -0700334
Yves Gerey665174f2018-06-19 15:03:05 +0200335RTCRemoteIceCandidateStats::RTCRemoteIceCandidateStats(std::string&& id,
336 int64_t timestamp_us)
337 : RTCIceCandidateStats(std::move(id), timestamp_us, true) {}
hbosab9f6e42016-10-07 02:18:47 -0700338
Henrik Boström1df1bf82018-03-20 13:24:20 +0100339std::unique_ptr<RTCStats> RTCRemoteIceCandidateStats::copy() const {
340 return std::unique_ptr<RTCStats>(new RTCRemoteIceCandidateStats(*this));
341}
342
hbosab9f6e42016-10-07 02:18:47 -0700343const char* RTCRemoteIceCandidateStats::type() const {
344 return kType;
345}
346
Steve Antond6a5cbd2017-08-18 09:40:25 -0700347// clang-format off
hbos09bc1282016-11-08 06:29:22 -0800348WEBRTC_RTCSTATS_IMPL(RTCMediaStreamStats, RTCStats, "stream",
349 &stream_identifier,
Nico Weber22f99252019-02-20 10:13:16 -0500350 &track_ids)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700351// clang-format on
hbos09bc1282016-11-08 06:29:22 -0800352
Yves Gerey665174f2018-06-19 15:03:05 +0200353RTCMediaStreamStats::RTCMediaStreamStats(const std::string& id,
354 int64_t timestamp_us)
355 : RTCMediaStreamStats(std::string(id), timestamp_us) {}
hbos09bc1282016-11-08 06:29:22 -0800356
Yves Gerey665174f2018-06-19 15:03:05 +0200357RTCMediaStreamStats::RTCMediaStreamStats(std::string&& id, int64_t timestamp_us)
hbos09bc1282016-11-08 06:29:22 -0800358 : RTCStats(std::move(id), timestamp_us),
359 stream_identifier("streamIdentifier"),
Yves Gerey665174f2018-06-19 15:03:05 +0200360 track_ids("trackIds") {}
hbos09bc1282016-11-08 06:29:22 -0800361
Yves Gerey665174f2018-06-19 15:03:05 +0200362RTCMediaStreamStats::RTCMediaStreamStats(const RTCMediaStreamStats& other)
hbos09bc1282016-11-08 06:29:22 -0800363 : RTCStats(other.id(), other.timestamp_us()),
364 stream_identifier(other.stream_identifier),
Yves Gerey665174f2018-06-19 15:03:05 +0200365 track_ids(other.track_ids) {}
hbos09bc1282016-11-08 06:29:22 -0800366
Yves Gerey665174f2018-06-19 15:03:05 +0200367RTCMediaStreamStats::~RTCMediaStreamStats() {}
hbos09bc1282016-11-08 06:29:22 -0800368
Steve Antond6a5cbd2017-08-18 09:40:25 -0700369// clang-format off
hbos09bc1282016-11-08 06:29:22 -0800370WEBRTC_RTCSTATS_IMPL(RTCMediaStreamTrackStats, RTCStats, "track",
zsteine76bd3a2017-07-14 12:17:49 -0700371 &track_identifier,
Henrik Boström646fda02019-05-22 15:49:42 +0200372 &media_source_id,
zsteine76bd3a2017-07-14 12:17:49 -0700373 &remote_source,
374 &ended,
375 &detached,
376 &kind,
Gustaf Ullbergb0a02072017-10-02 12:00:34 +0200377 &jitter_buffer_delay,
Chen Xing0acffb52019-01-15 15:46:29 +0100378 &jitter_buffer_emitted_count,
zsteine76bd3a2017-07-14 12:17:49 -0700379 &frame_width,
380 &frame_height,
381 &frames_per_second,
382 &frames_sent,
Ilya Nikolaevskiy70473fc2018-02-28 16:35:03 +0100383 &huge_frames_sent,
zsteine76bd3a2017-07-14 12:17:49 -0700384 &frames_received,
385 &frames_decoded,
386 &frames_dropped,
387 &frames_corrupted,
388 &partial_frames_lost,
389 &full_frames_lost,
390 &audio_level,
391 &total_audio_energy,
zsteine76bd3a2017-07-14 12:17:49 -0700392 &echo_return_loss,
Steve Anton2dbc69f2017-08-24 17:15:13 -0700393 &echo_return_loss_enhancement,
394 &total_samples_received,
395 &total_samples_duration,
Gustaf Ullberg9a2e9062017-09-18 09:28:20 +0200396 &concealed_samples,
Henrik Boström21e99da2019-08-21 12:09:51 +0200397 &silent_concealed_samples,
Ruslan Burakov8af88962018-11-22 17:21:10 +0100398 &concealment_events,
Henrik Boström21e99da2019-08-21 12:09:51 +0200399 &inserted_samples_for_deceleration,
400 &removed_samples_for_acceleration,
Jakob Ivarsson352ce5c2018-11-27 12:52:16 +0100401 &jitter_buffer_flushes,
Sergey Silkin02371062019-01-31 16:45:42 +0100402 &delayed_packet_outage_samples,
Jakob Ivarsson232b3fd2019-03-06 09:18:40 +0100403 &relative_packet_arrival_delay,
Artem Titove618cc92020-03-11 11:18:54 +0100404 &jitter_buffer_target_delay,
Henrik Lundin44125fa2019-04-29 17:00:46 +0200405 &interruption_count,
406 &total_interruption_duration,
Sergey Silkin02371062019-01-31 16:45:42 +0100407 &freeze_count,
408 &pause_count,
409 &total_freezes_duration,
410 &total_pauses_duration,
411 &total_frames_duration,
Nico Weber22f99252019-02-20 10:13:16 -0500412 &sum_squared_frame_durations)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700413// clang-format on
hbos09bc1282016-11-08 06:29:22 -0800414
Yves Gerey665174f2018-06-19 15:03:05 +0200415RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(const std::string& id,
416 int64_t timestamp_us,
417 const char* kind)
418 : RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) {}
hbos09bc1282016-11-08 06:29:22 -0800419
zsteine76bd3a2017-07-14 12:17:49 -0700420RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(std::string&& id,
421 int64_t timestamp_us,
422 const char* kind)
hbos09bc1282016-11-08 06:29:22 -0800423 : RTCStats(std::move(id), timestamp_us),
424 track_identifier("trackIdentifier"),
Henrik Boström646fda02019-05-22 15:49:42 +0200425 media_source_id("mediaSourceId"),
hbos09bc1282016-11-08 06:29:22 -0800426 remote_source("remoteSource"),
427 ended("ended"),
428 detached("detached"),
hbos160e4a72017-01-17 02:53:23 -0800429 kind("kind", kind),
Gustaf Ullbergb0a02072017-10-02 12:00:34 +0200430 jitter_buffer_delay("jitterBufferDelay"),
Chen Xing0acffb52019-01-15 15:46:29 +0100431 jitter_buffer_emitted_count("jitterBufferEmittedCount"),
hbos09bc1282016-11-08 06:29:22 -0800432 frame_width("frameWidth"),
433 frame_height("frameHeight"),
434 frames_per_second("framesPerSecond"),
435 frames_sent("framesSent"),
Ilya Nikolaevskiy70473fc2018-02-28 16:35:03 +0100436 huge_frames_sent("hugeFramesSent"),
hbos09bc1282016-11-08 06:29:22 -0800437 frames_received("framesReceived"),
438 frames_decoded("framesDecoded"),
439 frames_dropped("framesDropped"),
440 frames_corrupted("framesCorrupted"),
441 partial_frames_lost("partialFramesLost"),
442 full_frames_lost("fullFramesLost"),
443 audio_level("audioLevel"),
zsteine76bd3a2017-07-14 12:17:49 -0700444 total_audio_energy("totalAudioEnergy"),
hbos09bc1282016-11-08 06:29:22 -0800445 echo_return_loss("echoReturnLoss"),
Steve Anton2dbc69f2017-08-24 17:15:13 -0700446 echo_return_loss_enhancement("echoReturnLossEnhancement"),
447 total_samples_received("totalSamplesReceived"),
448 total_samples_duration("totalSamplesDuration"),
Gustaf Ullberg9a2e9062017-09-18 09:28:20 +0200449 concealed_samples("concealedSamples"),
Ivo Creusen8d8ffdb2019-04-30 09:45:21 +0200450 silent_concealed_samples("silentConcealedSamples"),
Ruslan Burakov8af88962018-11-22 17:21:10 +0100451 concealment_events("concealmentEvents"),
Ivo Creusen8d8ffdb2019-04-30 09:45:21 +0200452 inserted_samples_for_deceleration("insertedSamplesForDeceleration"),
453 removed_samples_for_acceleration("removedSamplesForAcceleration"),
Jakob Ivarsson758d9462019-03-19 15:38:49 +0100454 jitter_buffer_flushes(
455 "jitterBufferFlushes",
456 {NonStandardGroupId::kRtcAudioJitterBufferMaxPackets}),
457 delayed_packet_outage_samples(
458 "delayedPacketOutageSamples",
459 {NonStandardGroupId::kRtcAudioJitterBufferMaxPackets,
460 NonStandardGroupId::kRtcStatsRelativePacketArrivalDelay}),
461 relative_packet_arrival_delay(
462 "relativePacketArrivalDelay",
463 {NonStandardGroupId::kRtcStatsRelativePacketArrivalDelay}),
Artem Titove618cc92020-03-11 11:18:54 +0100464 jitter_buffer_target_delay("jitterBufferTargetDelay"),
Henrik Lundin44125fa2019-04-29 17:00:46 +0200465 interruption_count("interruptionCount"),
466 total_interruption_duration("totalInterruptionDuration"),
Sergey Silkin02371062019-01-31 16:45:42 +0100467 freeze_count("freezeCount"),
468 pause_count("pauseCount"),
469 total_freezes_duration("totalFreezesDuration"),
470 total_pauses_duration("totalPausesDuration"),
471 total_frames_duration("totalFramesDuration"),
472 sum_squared_frame_durations("sumOfSquaredFramesDuration") {
hbos160e4a72017-01-17 02:53:23 -0800473 RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio ||
474 kind == RTCMediaStreamTrackKind::kVideo);
hbos09bc1282016-11-08 06:29:22 -0800475}
476
477RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
478 const RTCMediaStreamTrackStats& other)
479 : RTCStats(other.id(), other.timestamp_us()),
480 track_identifier(other.track_identifier),
Henrik Boström646fda02019-05-22 15:49:42 +0200481 media_source_id(other.media_source_id),
hbos09bc1282016-11-08 06:29:22 -0800482 remote_source(other.remote_source),
483 ended(other.ended),
484 detached(other.detached),
hbos160e4a72017-01-17 02:53:23 -0800485 kind(other.kind),
Gustaf Ullbergb0a02072017-10-02 12:00:34 +0200486 jitter_buffer_delay(other.jitter_buffer_delay),
Chen Xing0acffb52019-01-15 15:46:29 +0100487 jitter_buffer_emitted_count(other.jitter_buffer_emitted_count),
hbos09bc1282016-11-08 06:29:22 -0800488 frame_width(other.frame_width),
489 frame_height(other.frame_height),
490 frames_per_second(other.frames_per_second),
491 frames_sent(other.frames_sent),
Ilya Nikolaevskiy70473fc2018-02-28 16:35:03 +0100492 huge_frames_sent(other.huge_frames_sent),
hbos09bc1282016-11-08 06:29:22 -0800493 frames_received(other.frames_received),
494 frames_decoded(other.frames_decoded),
495 frames_dropped(other.frames_dropped),
496 frames_corrupted(other.frames_corrupted),
497 partial_frames_lost(other.partial_frames_lost),
498 full_frames_lost(other.full_frames_lost),
499 audio_level(other.audio_level),
zsteine76bd3a2017-07-14 12:17:49 -0700500 total_audio_energy(other.total_audio_energy),
hbos09bc1282016-11-08 06:29:22 -0800501 echo_return_loss(other.echo_return_loss),
Steve Anton2dbc69f2017-08-24 17:15:13 -0700502 echo_return_loss_enhancement(other.echo_return_loss_enhancement),
503 total_samples_received(other.total_samples_received),
504 total_samples_duration(other.total_samples_duration),
Gustaf Ullberg9a2e9062017-09-18 09:28:20 +0200505 concealed_samples(other.concealed_samples),
Ivo Creusen8d8ffdb2019-04-30 09:45:21 +0200506 silent_concealed_samples(other.silent_concealed_samples),
Ruslan Burakov8af88962018-11-22 17:21:10 +0100507 concealment_events(other.concealment_events),
Ivo Creusen8d8ffdb2019-04-30 09:45:21 +0200508 inserted_samples_for_deceleration(
509 other.inserted_samples_for_deceleration),
510 removed_samples_for_acceleration(other.removed_samples_for_acceleration),
Jakob Ivarsson352ce5c2018-11-27 12:52:16 +0100511 jitter_buffer_flushes(other.jitter_buffer_flushes),
Sergey Silkin02371062019-01-31 16:45:42 +0100512 delayed_packet_outage_samples(other.delayed_packet_outage_samples),
Jakob Ivarsson232b3fd2019-03-06 09:18:40 +0100513 relative_packet_arrival_delay(other.relative_packet_arrival_delay),
Artem Titove618cc92020-03-11 11:18:54 +0100514 jitter_buffer_target_delay(other.jitter_buffer_target_delay),
Henrik Lundin44125fa2019-04-29 17:00:46 +0200515 interruption_count(other.interruption_count),
516 total_interruption_duration(other.total_interruption_duration),
Sergey Silkin02371062019-01-31 16:45:42 +0100517 freeze_count(other.freeze_count),
518 pause_count(other.pause_count),
519 total_freezes_duration(other.total_freezes_duration),
520 total_pauses_duration(other.total_pauses_duration),
521 total_frames_duration(other.total_frames_duration),
522 sum_squared_frame_durations(other.sum_squared_frame_durations) {}
hbos09bc1282016-11-08 06:29:22 -0800523
Yves Gerey665174f2018-06-19 15:03:05 +0200524RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() {}
hbos09bc1282016-11-08 06:29:22 -0800525
Steve Antond6a5cbd2017-08-18 09:40:25 -0700526// clang-format off
hbosfc5e0502016-10-06 02:06:10 -0700527WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection",
528 &data_channels_opened,
Nico Weber22f99252019-02-20 10:13:16 -0500529 &data_channels_closed)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700530// clang-format on
hbosd565b732016-08-30 14:04:35 -0700531
Yves Gerey665174f2018-06-19 15:03:05 +0200532RTCPeerConnectionStats::RTCPeerConnectionStats(const std::string& id,
533 int64_t timestamp_us)
534 : RTCPeerConnectionStats(std::string(id), timestamp_us) {}
hbosd565b732016-08-30 14:04:35 -0700535
Yves Gerey665174f2018-06-19 15:03:05 +0200536RTCPeerConnectionStats::RTCPeerConnectionStats(std::string&& id,
537 int64_t timestamp_us)
hbos0e6758d2016-08-31 07:57:36 -0700538 : RTCStats(std::move(id), timestamp_us),
hbosd565b732016-08-30 14:04:35 -0700539 data_channels_opened("dataChannelsOpened"),
Yves Gerey665174f2018-06-19 15:03:05 +0200540 data_channels_closed("dataChannelsClosed") {}
hbosd565b732016-08-30 14:04:35 -0700541
hbosfc5e0502016-10-06 02:06:10 -0700542RTCPeerConnectionStats::RTCPeerConnectionStats(
543 const RTCPeerConnectionStats& other)
544 : RTCStats(other.id(), other.timestamp_us()),
545 data_channels_opened(other.data_channels_opened),
Yves Gerey665174f2018-06-19 15:03:05 +0200546 data_channels_closed(other.data_channels_closed) {}
hbosfc5e0502016-10-06 02:06:10 -0700547
Yves Gerey665174f2018-06-19 15:03:05 +0200548RTCPeerConnectionStats::~RTCPeerConnectionStats() {}
hbosfc5e0502016-10-06 02:06:10 -0700549
Steve Antond6a5cbd2017-08-18 09:40:25 -0700550// clang-format off
hbos6ded1902016-11-01 01:50:46 -0700551WEBRTC_RTCSTATS_IMPL(RTCRTPStreamStats, RTCStats, "rtp",
552 &ssrc,
Philipp Hancke3bc01662018-08-28 14:55:03 +0200553 &kind,
hbosb0ae9202017-01-27 06:35:16 -0800554 &track_id,
hbos6ded1902016-11-01 01:50:46 -0700555 &transport_id,
556 &codec_id,
Di Wufd1e9d12021-03-09 09:25:28 -0800557 &media_type)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700558// clang-format on
hbos6ded1902016-11-01 01:50:46 -0700559
Yves Gerey665174f2018-06-19 15:03:05 +0200560RTCRTPStreamStats::RTCRTPStreamStats(const std::string& id,
561 int64_t timestamp_us)
562 : RTCRTPStreamStats(std::string(id), timestamp_us) {}
hbos6ded1902016-11-01 01:50:46 -0700563
Yves Gerey665174f2018-06-19 15:03:05 +0200564RTCRTPStreamStats::RTCRTPStreamStats(std::string&& id, int64_t timestamp_us)
hbos6ded1902016-11-01 01:50:46 -0700565 : RTCStats(std::move(id), timestamp_us),
566 ssrc("ssrc"),
Philipp Hancke3bc01662018-08-28 14:55:03 +0200567 kind("kind"),
hbosb0ae9202017-01-27 06:35:16 -0800568 track_id("trackId"),
hbos6ded1902016-11-01 01:50:46 -0700569 transport_id("transportId"),
570 codec_id("codecId"),
Di Wufd1e9d12021-03-09 09:25:28 -0800571 media_type("mediaType") {}
hbos6ded1902016-11-01 01:50:46 -0700572
Yves Gerey665174f2018-06-19 15:03:05 +0200573RTCRTPStreamStats::RTCRTPStreamStats(const RTCRTPStreamStats& other)
hbos6ded1902016-11-01 01:50:46 -0700574 : RTCStats(other.id(), other.timestamp_us()),
575 ssrc(other.ssrc),
Philipp Hancke3bc01662018-08-28 14:55:03 +0200576 kind(other.kind),
hbosb0ae9202017-01-27 06:35:16 -0800577 track_id(other.track_id),
hbos6ded1902016-11-01 01:50:46 -0700578 transport_id(other.transport_id),
579 codec_id(other.codec_id),
Di Wufd1e9d12021-03-09 09:25:28 -0800580 media_type(other.media_type) {}
hbos6ded1902016-11-01 01:50:46 -0700581
Yves Gerey665174f2018-06-19 15:03:05 +0200582RTCRTPStreamStats::~RTCRTPStreamStats() {}
hbos6ded1902016-11-01 01:50:46 -0700583
Steve Antond6a5cbd2017-08-18 09:40:25 -0700584// clang-format off
hbos6ded1902016-11-01 01:50:46 -0700585WEBRTC_RTCSTATS_IMPL(
Di Wufd1e9d12021-03-09 09:25:28 -0800586 RTCReceivedRtpStreamStats, RTCRTPStreamStats, "received-rtp",
587 &jitter,
588 &packets_lost)
589// clang-format on
590
591RTCReceivedRtpStreamStats::RTCReceivedRtpStreamStats(const std::string&& id,
592 int64_t timestamp_us)
593 : RTCReceivedRtpStreamStats(std::string(id), timestamp_us) {}
594
595RTCReceivedRtpStreamStats::RTCReceivedRtpStreamStats(std::string&& id,
596 int64_t timestamp_us)
597 : RTCRTPStreamStats(std::move(id), timestamp_us),
598 jitter("jitter"),
599 packets_lost("packetsLost") {}
600
601RTCReceivedRtpStreamStats::RTCReceivedRtpStreamStats(
602 const RTCReceivedRtpStreamStats& other)
603 : RTCRTPStreamStats(other),
604 jitter(other.jitter),
605 packets_lost(other.packets_lost) {}
606
607RTCReceivedRtpStreamStats::~RTCReceivedRtpStreamStats() {}
608
609// clang-format off
610WEBRTC_RTCSTATS_IMPL(
611 RTCInboundRTPStreamStats, RTCReceivedRtpStreamStats, "inbound-rtp",
hboseeafe942016-11-01 03:00:17 -0700612 &packets_received,
Henrik Boström4a5dab02020-01-28 11:15:35 +0100613 &fec_packets_received,
614 &fec_packets_discarded,
hboseeafe942016-11-01 03:00:17 -0700615 &bytes_received,
Niels Möllerac0a4cb2019-10-09 15:01:33 +0200616 &header_bytes_received,
Henrik Boström01738c62019-04-15 17:32:00 +0200617 &last_packet_received_timestamp,
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300618 &jitter_buffer_delay,
619 &jitter_buffer_emitted_count,
620 &total_samples_received,
621 &concealed_samples,
622 &silent_concealed_samples,
623 &concealment_events,
624 &inserted_samples_for_deceleration,
625 &removed_samples_for_acceleration,
626 &audio_level,
627 &total_audio_energy,
628 &total_samples_duration,
629 &frames_received,
hbosa7a9be12017-03-01 01:02:45 -0800630 &round_trip_time,
hboseeafe942016-11-01 03:00:17 -0700631 &packets_discarded,
632 &packets_repaired,
633 &burst_packets_lost,
634 &burst_packets_discarded,
635 &burst_loss_count,
636 &burst_discard_count,
637 &burst_loss_rate,
638 &burst_discard_rate,
639 &gap_loss_rate,
hbos6769c492017-01-02 08:35:13 -0800640 &gap_discard_rate,
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300641 &frame_width,
642 &frame_height,
643 &frame_bit_depth,
644 &frames_per_second,
Henrik Boström2e069262019-04-09 13:59:31 +0200645 &frames_decoded,
Rasmus Brandt2efae772019-06-27 14:29:34 +0200646 &key_frames_decoded,
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300647 &frames_dropped,
Johannes Kronbfd343b2019-07-01 10:07:50 +0200648 &total_decode_time,
Johannes Kron00376e12019-11-25 10:25:42 +0100649 &total_inter_frame_delay,
650 &total_squared_inter_frame_delay,
Henrik Boström6b430862019-08-16 13:09:51 +0200651 &content_type,
Åsa Perssonfcf79cc2019-10-22 15:23:44 +0200652 &estimated_playout_timestamp,
Di Wufd1e9d12021-03-09 09:25:28 -0800653 &decoder_implementation,
654 &fir_count,
655 &pli_count,
656 &nack_count,
657 &qp_sum,
658 &is_remote)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700659// clang-format on
hboseeafe942016-11-01 03:00:17 -0700660
Yves Gerey665174f2018-06-19 15:03:05 +0200661RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(const std::string& id,
662 int64_t timestamp_us)
663 : RTCInboundRTPStreamStats(std::string(id), timestamp_us) {}
hboseeafe942016-11-01 03:00:17 -0700664
Yves Gerey665174f2018-06-19 15:03:05 +0200665RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(std::string&& id,
666 int64_t timestamp_us)
Di Wufd1e9d12021-03-09 09:25:28 -0800667 : RTCReceivedRtpStreamStats(std::move(id), timestamp_us),
hboseeafe942016-11-01 03:00:17 -0700668 packets_received("packetsReceived"),
Ivo Creusen8d8ffdb2019-04-30 09:45:21 +0200669 fec_packets_received("fecPacketsReceived"),
670 fec_packets_discarded("fecPacketsDiscarded"),
hboseeafe942016-11-01 03:00:17 -0700671 bytes_received("bytesReceived"),
Niels Möllerac0a4cb2019-10-09 15:01:33 +0200672 header_bytes_received("headerBytesReceived"),
Henrik Boström01738c62019-04-15 17:32:00 +0200673 last_packet_received_timestamp("lastPacketReceivedTimestamp"),
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300674 jitter_buffer_delay("jitterBufferDelay"),
675 jitter_buffer_emitted_count("jitterBufferEmittedCount"),
676 total_samples_received("totalSamplesReceived"),
677 concealed_samples("concealedSamples"),
678 silent_concealed_samples("silentConcealedSamples"),
679 concealment_events("concealmentEvents"),
680 inserted_samples_for_deceleration("insertedSamplesForDeceleration"),
681 removed_samples_for_acceleration("removedSamplesForAcceleration"),
682 audio_level("audioLevel"),
683 total_audio_energy("totalAudioEnergy"),
684 total_samples_duration("totalSamplesDuration"),
685 frames_received("framesReceived"),
hbosa7a9be12017-03-01 01:02:45 -0800686 round_trip_time("roundTripTime"),
hboseeafe942016-11-01 03:00:17 -0700687 packets_discarded("packetsDiscarded"),
688 packets_repaired("packetsRepaired"),
689 burst_packets_lost("burstPacketsLost"),
690 burst_packets_discarded("burstPacketsDiscarded"),
691 burst_loss_count("burstLossCount"),
692 burst_discard_count("burstDiscardCount"),
693 burst_loss_rate("burstLossRate"),
694 burst_discard_rate("burstDiscardRate"),
695 gap_loss_rate("gapLossRate"),
hbos6769c492017-01-02 08:35:13 -0800696 gap_discard_rate("gapDiscardRate"),
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300697 frame_width("frameWidth"),
698 frame_height("frameHeight"),
699 frame_bit_depth("frameBitDepth"),
700 frames_per_second("framesPerSecond"),
Henrik Boström2e069262019-04-09 13:59:31 +0200701 frames_decoded("framesDecoded"),
Rasmus Brandt2efae772019-06-27 14:29:34 +0200702 key_frames_decoded("keyFramesDecoded"),
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300703 frames_dropped("framesDropped"),
Johannes Kronbfd343b2019-07-01 10:07:50 +0200704 total_decode_time("totalDecodeTime"),
Johannes Kron00376e12019-11-25 10:25:42 +0100705 total_inter_frame_delay("totalInterFrameDelay"),
706 total_squared_inter_frame_delay("totalSquaredInterFrameDelay"),
Henrik Boström6b430862019-08-16 13:09:51 +0200707 content_type("contentType"),
Åsa Perssonfcf79cc2019-10-22 15:23:44 +0200708 estimated_playout_timestamp("estimatedPlayoutTimestamp"),
Di Wufd1e9d12021-03-09 09:25:28 -0800709 decoder_implementation("decoderImplementation"),
710 fir_count("firCount"),
711 pli_count("pliCount"),
712 nack_count("nackCount"),
713 qp_sum("qpSum"),
714 is_remote("isRemote") {}
hboseeafe942016-11-01 03:00:17 -0700715
716RTCInboundRTPStreamStats::RTCInboundRTPStreamStats(
717 const RTCInboundRTPStreamStats& other)
Di Wufd1e9d12021-03-09 09:25:28 -0800718 : RTCReceivedRtpStreamStats(other),
hboseeafe942016-11-01 03:00:17 -0700719 packets_received(other.packets_received),
Ivo Creusen8d8ffdb2019-04-30 09:45:21 +0200720 fec_packets_received(other.fec_packets_received),
721 fec_packets_discarded(other.fec_packets_discarded),
hboseeafe942016-11-01 03:00:17 -0700722 bytes_received(other.bytes_received),
Niels Möllerac0a4cb2019-10-09 15:01:33 +0200723 header_bytes_received(other.header_bytes_received),
Henrik Boström01738c62019-04-15 17:32:00 +0200724 last_packet_received_timestamp(other.last_packet_received_timestamp),
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300725 jitter_buffer_delay(other.jitter_buffer_delay),
726 jitter_buffer_emitted_count(other.jitter_buffer_emitted_count),
727 total_samples_received(other.total_samples_received),
728 concealed_samples(other.concealed_samples),
729 silent_concealed_samples(other.silent_concealed_samples),
730 concealment_events(other.concealment_events),
731 inserted_samples_for_deceleration(
732 other.inserted_samples_for_deceleration),
733 removed_samples_for_acceleration(other.removed_samples_for_acceleration),
734 audio_level(other.audio_level),
735 total_audio_energy(other.total_audio_energy),
736 total_samples_duration(other.total_samples_duration),
737 frames_received(other.frames_received),
hbosa7a9be12017-03-01 01:02:45 -0800738 round_trip_time(other.round_trip_time),
hboseeafe942016-11-01 03:00:17 -0700739 packets_discarded(other.packets_discarded),
740 packets_repaired(other.packets_repaired),
741 burst_packets_lost(other.burst_packets_lost),
742 burst_packets_discarded(other.burst_packets_discarded),
743 burst_loss_count(other.burst_loss_count),
744 burst_discard_count(other.burst_discard_count),
745 burst_loss_rate(other.burst_loss_rate),
746 burst_discard_rate(other.burst_discard_rate),
747 gap_loss_rate(other.gap_loss_rate),
hbos6769c492017-01-02 08:35:13 -0800748 gap_discard_rate(other.gap_discard_rate),
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300749 frame_width(other.frame_width),
750 frame_height(other.frame_height),
751 frame_bit_depth(other.frame_bit_depth),
752 frames_per_second(other.frames_per_second),
Henrik Boström2e069262019-04-09 13:59:31 +0200753 frames_decoded(other.frames_decoded),
Rasmus Brandt2efae772019-06-27 14:29:34 +0200754 key_frames_decoded(other.key_frames_decoded),
Eldar Rello4e5bc9f2020-07-06 14:18:07 +0300755 frames_dropped(other.frames_dropped),
Johannes Kronbfd343b2019-07-01 10:07:50 +0200756 total_decode_time(other.total_decode_time),
Johannes Kron00376e12019-11-25 10:25:42 +0100757 total_inter_frame_delay(other.total_inter_frame_delay),
758 total_squared_inter_frame_delay(other.total_squared_inter_frame_delay),
Henrik Boström6b430862019-08-16 13:09:51 +0200759 content_type(other.content_type),
Åsa Perssonfcf79cc2019-10-22 15:23:44 +0200760 estimated_playout_timestamp(other.estimated_playout_timestamp),
Di Wufd1e9d12021-03-09 09:25:28 -0800761 decoder_implementation(other.decoder_implementation),
762 fir_count(other.fir_count),
763 pli_count(other.pli_count),
764 nack_count(other.nack_count),
765 qp_sum(other.qp_sum),
766 is_remote(other.is_remote) {}
hboseeafe942016-11-01 03:00:17 -0700767
Yves Gerey665174f2018-06-19 15:03:05 +0200768RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() {}
hboseeafe942016-11-01 03:00:17 -0700769
Steve Antond6a5cbd2017-08-18 09:40:25 -0700770// clang-format off
hboseeafe942016-11-01 03:00:17 -0700771WEBRTC_RTCSTATS_IMPL(
hbos6ded1902016-11-01 01:50:46 -0700772 RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp",
Henrik Boström646fda02019-05-22 15:49:42 +0200773 &media_source_id,
Henrik Boström4f40fa52019-12-19 13:27:27 +0100774 &remote_id,
Henrik Boströma0ff50c2020-05-05 15:54:46 +0200775 &rid,
hbos6ded1902016-11-01 01:50:46 -0700776 &packets_sent,
Henrik Boströmcf96e0f2019-04-17 13:51:53 +0200777 &retransmitted_packets_sent,
hbos6ded1902016-11-01 01:50:46 -0700778 &bytes_sent,
Niels Möllerac0a4cb2019-10-09 15:01:33 +0200779 &header_bytes_sent,
Henrik Boströmcf96e0f2019-04-17 13:51:53 +0200780 &retransmitted_bytes_sent,
hbos6ded1902016-11-01 01:50:46 -0700781 &target_bitrate,
Henrik Boströmf71362f2019-04-08 16:14:23 +0200782 &frames_encoded,
Rasmus Brandt2efae772019-06-27 14:29:34 +0200783 &key_frames_encoded,
Henrik Boström2e069262019-04-09 13:59:31 +0200784 &total_encode_time,
Henrik Boström23aff9b2019-05-20 15:15:38 +0200785 &total_encoded_bytes_target,
Henrik Boströma0ff50c2020-05-05 15:54:46 +0200786 &frame_width,
787 &frame_height,
788 &frames_per_second,
789 &frames_sent,
790 &huge_frames_sent,
Henrik Boström9fe18342019-05-16 18:38:20 +0200791 &total_packet_send_delay,
Henrik Boströmce33b6a2019-05-28 17:42:38 +0200792 &quality_limitation_reason,
Evan Shrubsolecc62b162019-09-09 11:26:45 +0200793 &quality_limitation_resolution_changes,
Henrik Boström6b430862019-08-16 13:09:51 +0200794 &content_type,
Di Wufd1e9d12021-03-09 09:25:28 -0800795 &encoder_implementation,
796 &fir_count,
797 &pli_count,
798 &nack_count,
799 &qp_sum,
800 &is_remote)
Steve Antond6a5cbd2017-08-18 09:40:25 -0700801// clang-format on
hbos6ded1902016-11-01 01:50:46 -0700802
Yves Gerey665174f2018-06-19 15:03:05 +0200803RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(const std::string& id,
804 int64_t timestamp_us)
805 : RTCOutboundRTPStreamStats(std::string(id), timestamp_us) {}
hbos6ded1902016-11-01 01:50:46 -0700806
Yves Gerey665174f2018-06-19 15:03:05 +0200807RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(std::string&& id,
808 int64_t timestamp_us)
hbos6ded1902016-11-01 01:50:46 -0700809 : RTCRTPStreamStats(std::move(id), timestamp_us),
Henrik Boström646fda02019-05-22 15:49:42 +0200810 media_source_id("mediaSourceId"),
Henrik Boström4f40fa52019-12-19 13:27:27 +0100811 remote_id("remoteId"),
Henrik Boströma0ff50c2020-05-05 15:54:46 +0200812 rid("rid"),
hbos6ded1902016-11-01 01:50:46 -0700813 packets_sent("packetsSent"),
Henrik Boströmcf96e0f2019-04-17 13:51:53 +0200814 retransmitted_packets_sent("retransmittedPacketsSent"),
hbos6ded1902016-11-01 01:50:46 -0700815 bytes_sent("bytesSent"),
Niels Möllerac0a4cb2019-10-09 15:01:33 +0200816 header_bytes_sent("headerBytesSent"),
Henrik Boströmcf96e0f2019-04-17 13:51:53 +0200817 retransmitted_bytes_sent("retransmittedBytesSent"),
hbos6ded1902016-11-01 01:50:46 -0700818 target_bitrate("targetBitrate"),
Henrik Boströmf71362f2019-04-08 16:14:23 +0200819 frames_encoded("framesEncoded"),
Rasmus Brandt2efae772019-06-27 14:29:34 +0200820 key_frames_encoded("keyFramesEncoded"),
Henrik Boström2e069262019-04-09 13:59:31 +0200821 total_encode_time("totalEncodeTime"),
Henrik Boström23aff9b2019-05-20 15:15:38 +0200822 total_encoded_bytes_target("totalEncodedBytesTarget"),
Henrik Boströma0ff50c2020-05-05 15:54:46 +0200823 frame_width("frameWidth"),
824 frame_height("frameHeight"),
825 frames_per_second("framesPerSecond"),
826 frames_sent("framesSent"),
827 huge_frames_sent("hugeFramesSent"),
Henrik Boström9fe18342019-05-16 18:38:20 +0200828 total_packet_send_delay("totalPacketSendDelay"),
Henrik Boströmce33b6a2019-05-28 17:42:38 +0200829 quality_limitation_reason("qualityLimitationReason"),
Evan Shrubsolecc62b162019-09-09 11:26:45 +0200830 quality_limitation_resolution_changes(
831 "qualityLimitationResolutionChanges"),
Henrik Boström6b430862019-08-16 13:09:51 +0200832 content_type("contentType"),
Di Wufd1e9d12021-03-09 09:25:28 -0800833 encoder_implementation("encoderImplementation"),
834 fir_count("firCount"),
835 pli_count("pliCount"),
836 nack_count("nackCount"),
837 qp_sum("qpSum"),
838 is_remote("isRemote") {}
hbos6ded1902016-11-01 01:50:46 -0700839
840RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
841 const RTCOutboundRTPStreamStats& other)
842 : RTCRTPStreamStats(other),
Henrik Boström646fda02019-05-22 15:49:42 +0200843 media_source_id(other.media_source_id),
Henrik Boström4f40fa52019-12-19 13:27:27 +0100844 remote_id(other.remote_id),
Henrik Boströma0ff50c2020-05-05 15:54:46 +0200845 rid(other.rid),
hbos6ded1902016-11-01 01:50:46 -0700846 packets_sent(other.packets_sent),
Henrik Boströmcf96e0f2019-04-17 13:51:53 +0200847 retransmitted_packets_sent(other.retransmitted_packets_sent),
hbos6ded1902016-11-01 01:50:46 -0700848 bytes_sent(other.bytes_sent),
Niels Möllerac0a4cb2019-10-09 15:01:33 +0200849 header_bytes_sent(other.header_bytes_sent),
Henrik Boströmcf96e0f2019-04-17 13:51:53 +0200850 retransmitted_bytes_sent(other.retransmitted_bytes_sent),
hbos6ded1902016-11-01 01:50:46 -0700851 target_bitrate(other.target_bitrate),
Henrik Boströmf71362f2019-04-08 16:14:23 +0200852 frames_encoded(other.frames_encoded),
Rasmus Brandt2efae772019-06-27 14:29:34 +0200853 key_frames_encoded(other.key_frames_encoded),
Henrik Boström2e069262019-04-09 13:59:31 +0200854 total_encode_time(other.total_encode_time),
Henrik Boström23aff9b2019-05-20 15:15:38 +0200855 total_encoded_bytes_target(other.total_encoded_bytes_target),
Henrik Boströma0ff50c2020-05-05 15:54:46 +0200856 frame_width(other.frame_width),
857 frame_height(other.frame_height),
858 frames_per_second(other.frames_per_second),
859 frames_sent(other.frames_sent),
860 huge_frames_sent(other.huge_frames_sent),
Henrik Boström9fe18342019-05-16 18:38:20 +0200861 total_packet_send_delay(other.total_packet_send_delay),
Henrik Boströmce33b6a2019-05-28 17:42:38 +0200862 quality_limitation_reason(other.quality_limitation_reason),
Evan Shrubsolecc62b162019-09-09 11:26:45 +0200863 quality_limitation_resolution_changes(
864 other.quality_limitation_resolution_changes),
Henrik Boström6b430862019-08-16 13:09:51 +0200865 content_type(other.content_type),
Di Wufd1e9d12021-03-09 09:25:28 -0800866 encoder_implementation(other.encoder_implementation),
867 fir_count(other.fir_count),
868 pli_count(other.pli_count),
869 nack_count(other.nack_count),
870 qp_sum(other.qp_sum),
871 is_remote(other.is_remote) {}
hbos6ded1902016-11-01 01:50:46 -0700872
Yves Gerey665174f2018-06-19 15:03:05 +0200873RTCOutboundRTPStreamStats::~RTCOutboundRTPStreamStats() {}
hbos6ded1902016-11-01 01:50:46 -0700874
Steve Antond6a5cbd2017-08-18 09:40:25 -0700875// clang-format off
Henrik Boström883eefc2019-05-27 13:40:25 +0200876WEBRTC_RTCSTATS_IMPL(
Henrik Boström2f71b612021-03-23 15:18:55 +0100877 RTCRemoteInboundRtpStreamStats, RTCReceivedRtpStreamStats,
878 "remote-inbound-rtp",
Henrik Boström883eefc2019-05-27 13:40:25 +0200879 &ssrc,
880 &kind,
881 &transport_id,
882 &codec_id,
Henrik Boström883eefc2019-05-27 13:40:25 +0200883 &local_id,
Di Wu86f04ad2021-02-28 23:36:03 -0800884 &round_trip_time,
Di Wu88a51b22021-03-01 11:22:06 -0800885 &fraction_lost,
886 &total_round_trip_time,
887 &round_trip_time_measurements)
Henrik Boström883eefc2019-05-27 13:40:25 +0200888// clang-format on
889
890RTCRemoteInboundRtpStreamStats::RTCRemoteInboundRtpStreamStats(
891 const std::string& id,
892 int64_t timestamp_us)
893 : RTCRemoteInboundRtpStreamStats(std::string(id), timestamp_us) {}
894
895RTCRemoteInboundRtpStreamStats::RTCRemoteInboundRtpStreamStats(
896 std::string&& id,
897 int64_t timestamp_us)
Di Wufd1e9d12021-03-09 09:25:28 -0800898 : RTCReceivedRtpStreamStats(std::move(id), timestamp_us),
Henrik Boström883eefc2019-05-27 13:40:25 +0200899 local_id("localId"),
Di Wu86f04ad2021-02-28 23:36:03 -0800900 round_trip_time("roundTripTime"),
Di Wu88a51b22021-03-01 11:22:06 -0800901 fraction_lost("fractionLost"),
902 total_round_trip_time("totalRoundTripTime"),
903 round_trip_time_measurements("roundTripTimeMeasurements") {}
Henrik Boström883eefc2019-05-27 13:40:25 +0200904
905RTCRemoteInboundRtpStreamStats::RTCRemoteInboundRtpStreamStats(
906 const RTCRemoteInboundRtpStreamStats& other)
Di Wufd1e9d12021-03-09 09:25:28 -0800907 : RTCReceivedRtpStreamStats(other),
Henrik Boström883eefc2019-05-27 13:40:25 +0200908 local_id(other.local_id),
Di Wu86f04ad2021-02-28 23:36:03 -0800909 round_trip_time(other.round_trip_time),
Di Wu88a51b22021-03-01 11:22:06 -0800910 fraction_lost(other.fraction_lost),
911 total_round_trip_time(other.total_round_trip_time),
912 round_trip_time_measurements(other.round_trip_time_measurements) {}
Henrik Boström883eefc2019-05-27 13:40:25 +0200913
914RTCRemoteInboundRtpStreamStats::~RTCRemoteInboundRtpStreamStats() {}
915
916// clang-format off
Henrik Boström646fda02019-05-22 15:49:42 +0200917WEBRTC_RTCSTATS_IMPL(RTCMediaSourceStats, RTCStats, "parent-media-source",
918 &track_identifier,
919 &kind)
920// clang-format on
921
922RTCMediaSourceStats::RTCMediaSourceStats(const std::string& id,
923 int64_t timestamp_us)
924 : RTCMediaSourceStats(std::string(id), timestamp_us) {}
925
926RTCMediaSourceStats::RTCMediaSourceStats(std::string&& id, int64_t timestamp_us)
927 : RTCStats(std::move(id), timestamp_us),
928 track_identifier("trackIdentifier"),
929 kind("kind") {}
930
931RTCMediaSourceStats::RTCMediaSourceStats(const RTCMediaSourceStats& other)
932 : RTCStats(other.id(), other.timestamp_us()),
933 track_identifier(other.track_identifier),
934 kind(other.kind) {}
935
936RTCMediaSourceStats::~RTCMediaSourceStats() {}
937
938// clang-format off
Henrik Boströmd2c336f2019-07-03 17:11:10 +0200939WEBRTC_RTCSTATS_IMPL(RTCAudioSourceStats, RTCMediaSourceStats, "media-source",
940 &audio_level,
941 &total_audio_energy,
942 &total_samples_duration)
Henrik Boström646fda02019-05-22 15:49:42 +0200943// clang-format on
944
945RTCAudioSourceStats::RTCAudioSourceStats(const std::string& id,
946 int64_t timestamp_us)
947 : RTCAudioSourceStats(std::string(id), timestamp_us) {}
948
949RTCAudioSourceStats::RTCAudioSourceStats(std::string&& id, int64_t timestamp_us)
Henrik Boströmd2c336f2019-07-03 17:11:10 +0200950 : RTCMediaSourceStats(std::move(id), timestamp_us),
951 audio_level("audioLevel"),
952 total_audio_energy("totalAudioEnergy"),
953 total_samples_duration("totalSamplesDuration") {}
Henrik Boström646fda02019-05-22 15:49:42 +0200954
955RTCAudioSourceStats::RTCAudioSourceStats(const RTCAudioSourceStats& other)
Henrik Boströmd2c336f2019-07-03 17:11:10 +0200956 : RTCMediaSourceStats(other),
957 audio_level(other.audio_level),
958 total_audio_energy(other.total_audio_energy),
959 total_samples_duration(other.total_samples_duration) {}
Henrik Boström646fda02019-05-22 15:49:42 +0200960
961RTCAudioSourceStats::~RTCAudioSourceStats() {}
962
963// clang-format off
964WEBRTC_RTCSTATS_IMPL(RTCVideoSourceStats, RTCMediaSourceStats, "media-source",
965 &width,
966 &height,
967 &frames,
968 &frames_per_second)
969// clang-format on
970
971RTCVideoSourceStats::RTCVideoSourceStats(const std::string& id,
972 int64_t timestamp_us)
973 : RTCVideoSourceStats(std::string(id), timestamp_us) {}
974
975RTCVideoSourceStats::RTCVideoSourceStats(std::string&& id, int64_t timestamp_us)
976 : RTCMediaSourceStats(std::move(id), timestamp_us),
977 width("width"),
978 height("height"),
979 frames("frames"),
980 frames_per_second("framesPerSecond") {}
981
982RTCVideoSourceStats::RTCVideoSourceStats(const RTCVideoSourceStats& other)
983 : RTCMediaSourceStats(other),
984 width(other.width),
985 height(other.height),
986 frames(other.frames),
987 frames_per_second(other.frames_per_second) {}
988
989RTCVideoSourceStats::~RTCVideoSourceStats() {}
990
991// clang-format off
hbos2fa7c672016-10-24 04:00:05 -0700992WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport",
993 &bytes_sent,
Artem Titovedacbd52020-07-06 16:06:37 +0200994 &packets_sent,
hbos2fa7c672016-10-24 04:00:05 -0700995 &bytes_received,
Artem Titovedacbd52020-07-06 16:06:37 +0200996 &packets_received,
hbos2fa7c672016-10-24 04:00:05 -0700997 &rtcp_transport_stats_id,
hbos7064d592017-01-16 07:38:02 -0800998 &dtls_state,
hbos2fa7c672016-10-24 04:00:05 -0700999 &selected_candidate_pair_id,
1000 &local_certificate_id,
Jonas Oreland149dc722019-08-28 08:10:27 +02001001 &remote_certificate_id,
Harald Alvestrand5cb78072019-10-28 09:51:17 +01001002 &tls_version,
1003 &dtls_cipher,
1004 &srtp_cipher,
Jonas Oreland149dc722019-08-28 08:10:27 +02001005 &selected_candidate_pair_changes)
Steve Antond6a5cbd2017-08-18 09:40:25 -07001006// clang-format on
hbos2fa7c672016-10-24 04:00:05 -07001007
Yves Gerey665174f2018-06-19 15:03:05 +02001008RTCTransportStats::RTCTransportStats(const std::string& id,
1009 int64_t timestamp_us)
1010 : RTCTransportStats(std::string(id), timestamp_us) {}
hbos2fa7c672016-10-24 04:00:05 -07001011
Yves Gerey665174f2018-06-19 15:03:05 +02001012RTCTransportStats::RTCTransportStats(std::string&& id, int64_t timestamp_us)
hbos2fa7c672016-10-24 04:00:05 -07001013 : RTCStats(std::move(id), timestamp_us),
1014 bytes_sent("bytesSent"),
Artem Titovedacbd52020-07-06 16:06:37 +02001015 packets_sent("packetsSent"),
hbos2fa7c672016-10-24 04:00:05 -07001016 bytes_received("bytesReceived"),
Artem Titovedacbd52020-07-06 16:06:37 +02001017 packets_received("packetsReceived"),
hbos2fa7c672016-10-24 04:00:05 -07001018 rtcp_transport_stats_id("rtcpTransportStatsId"),
hbos7064d592017-01-16 07:38:02 -08001019 dtls_state("dtlsState"),
hbos2fa7c672016-10-24 04:00:05 -07001020 selected_candidate_pair_id("selectedCandidatePairId"),
1021 local_certificate_id("localCertificateId"),
Jonas Oreland149dc722019-08-28 08:10:27 +02001022 remote_certificate_id("remoteCertificateId"),
Harald Alvestrand5cb78072019-10-28 09:51:17 +01001023 tls_version("tlsVersion"),
1024 dtls_cipher("dtlsCipher"),
1025 srtp_cipher("srtpCipher"),
Jonas Oreland149dc722019-08-28 08:10:27 +02001026 selected_candidate_pair_changes("selectedCandidatePairChanges") {}
hbos2fa7c672016-10-24 04:00:05 -07001027
Yves Gerey665174f2018-06-19 15:03:05 +02001028RTCTransportStats::RTCTransportStats(const RTCTransportStats& other)
hbos2fa7c672016-10-24 04:00:05 -07001029 : RTCStats(other.id(), other.timestamp_us()),
1030 bytes_sent(other.bytes_sent),
Artem Titovedacbd52020-07-06 16:06:37 +02001031 packets_sent(other.packets_sent),
hbos2fa7c672016-10-24 04:00:05 -07001032 bytes_received(other.bytes_received),
Artem Titovedacbd52020-07-06 16:06:37 +02001033 packets_received(other.packets_received),
hbos2fa7c672016-10-24 04:00:05 -07001034 rtcp_transport_stats_id(other.rtcp_transport_stats_id),
hbos7064d592017-01-16 07:38:02 -08001035 dtls_state(other.dtls_state),
hbos2fa7c672016-10-24 04:00:05 -07001036 selected_candidate_pair_id(other.selected_candidate_pair_id),
1037 local_certificate_id(other.local_certificate_id),
Jonas Oreland149dc722019-08-28 08:10:27 +02001038 remote_certificate_id(other.remote_certificate_id),
Harald Alvestrand5cb78072019-10-28 09:51:17 +01001039 tls_version(other.tls_version),
1040 dtls_cipher(other.dtls_cipher),
1041 srtp_cipher(other.srtp_cipher),
Jonas Oreland149dc722019-08-28 08:10:27 +02001042 selected_candidate_pair_changes(other.selected_candidate_pair_changes) {}
hbos2fa7c672016-10-24 04:00:05 -07001043
Yves Gerey665174f2018-06-19 15:03:05 +02001044RTCTransportStats::~RTCTransportStats() {}
hbos2fa7c672016-10-24 04:00:05 -07001045
hbosd565b732016-08-30 14:04:35 -07001046} // namespace webrtc