OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 RTCStatsMember<uint32_t> frames_decoded; | 265 RTCStatsMember<uint32_t> frames_decoded; |
266 RTCStatsMember<uint32_t> frames_dropped; | 266 RTCStatsMember<uint32_t> frames_dropped; |
267 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659137 | 267 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659137 |
268 RTCStatsMember<uint32_t> frames_corrupted; | 268 RTCStatsMember<uint32_t> frames_corrupted; |
269 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659137 | 269 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659137 |
270 RTCStatsMember<uint32_t> partial_frames_lost; | 270 RTCStatsMember<uint32_t> partial_frames_lost; |
271 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659137 | 271 // TODO(hbos): Not collected by |RTCStatsCollector|. crbug.com/659137 |
272 RTCStatsMember<uint32_t> full_frames_lost; | 272 RTCStatsMember<uint32_t> full_frames_lost; |
273 // Audio-only members | 273 // Audio-only members |
274 RTCStatsMember<double> audio_level; | 274 RTCStatsMember<double> audio_level; |
| 275 RTCStatsMember<double> total_audio_energy; |
| 276 RTCStatsMember<double> total_samples_duration; |
275 RTCStatsMember<double> echo_return_loss; | 277 RTCStatsMember<double> echo_return_loss; |
276 RTCStatsMember<double> echo_return_loss_enhancement; | 278 RTCStatsMember<double> echo_return_loss_enhancement; |
277 }; | 279 }; |
278 | 280 |
279 // https://w3c.github.io/webrtc-stats/#pcstats-dict* | 281 // https://w3c.github.io/webrtc-stats/#pcstats-dict* |
280 class RTCPeerConnectionStats final : public RTCStats { | 282 class RTCPeerConnectionStats final : public RTCStats { |
281 public: | 283 public: |
282 WEBRTC_RTCSTATS_DECL(); | 284 WEBRTC_RTCSTATS_DECL(); |
283 | 285 |
284 RTCPeerConnectionStats(const std::string& id, int64_t timestamp_us); | 286 RTCPeerConnectionStats(const std::string& id, int64_t timestamp_us); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 // TODO(hbos): Support enum types? "RTCStatsMember<RTCDtlsTransportState>"? | 407 // TODO(hbos): Support enum types? "RTCStatsMember<RTCDtlsTransportState>"? |
406 RTCStatsMember<std::string> dtls_state; | 408 RTCStatsMember<std::string> dtls_state; |
407 RTCStatsMember<std::string> selected_candidate_pair_id; | 409 RTCStatsMember<std::string> selected_candidate_pair_id; |
408 RTCStatsMember<std::string> local_certificate_id; | 410 RTCStatsMember<std::string> local_certificate_id; |
409 RTCStatsMember<std::string> remote_certificate_id; | 411 RTCStatsMember<std::string> remote_certificate_id; |
410 }; | 412 }; |
411 | 413 |
412 } // namespace webrtc | 414 } // namespace webrtc |
413 | 415 |
414 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ | 416 #endif // WEBRTC_API_STATS_RTCSTATS_OBJECTS_H_ |
OLD | NEW |