Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: webrtc/api/rtcstatscollector.cc

Issue 2606033002: RTCMediaStreamTrackStats.framesSent collected by RTCStatsCollector. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/rtcstats_integrationtest.cc ('k') | webrtc/api/rtcstatscollector_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 GetMediaInfoFromSsrc(video_info->senders, ssrc); 445 GetMediaInfoFromSsrc(video_info->senders, ssrc);
446 if (sender_info) { 446 if (sender_info) {
447 video_track_stats->ssrc_ids = StringSsrcsFromSsrcs( 447 video_track_stats->ssrc_ids = StringSsrcsFromSsrcs(
448 sender_info->ssrcs()); 448 sender_info->ssrcs());
449 video_track_stats->frame_width = static_cast<uint32_t>( 449 video_track_stats->frame_width = static_cast<uint32_t>(
450 sender_info->send_frame_width); 450 sender_info->send_frame_width);
451 video_track_stats->frame_height = static_cast<uint32_t>( 451 video_track_stats->frame_height = static_cast<uint32_t>(
452 sender_info->send_frame_height); 452 sender_info->send_frame_height);
453 video_track_stats->frames_per_second = static_cast<double>( 453 video_track_stats->frames_per_second = static_cast<double>(
454 sender_info->framerate_sent); 454 sender_info->framerate_sent);
455 video_track_stats->frames_sent = sender_info->frames_encoded;
hbos 2016/12/29 15:34:59 This is the same as RTCOutboundRTPStreamStats.fram
hta-webrtc 2017/01/02 16:00:12 The reason why the stats have two variables is tha
hbos 2017/01/19 10:41:16 Done.
455 } 456 }
456 } else { 457 } else {
457 const cricket::VideoReceiverInfo* receiver_info = 458 const cricket::VideoReceiverInfo* receiver_info =
458 GetMediaInfoFromSsrc(video_info->receivers, ssrc); 459 GetMediaInfoFromSsrc(video_info->receivers, ssrc);
459 if (receiver_info) { 460 if (receiver_info) {
460 video_track_stats->ssrc_ids = StringSsrcsFromSsrcs( 461 video_track_stats->ssrc_ids = StringSsrcsFromSsrcs(
461 receiver_info->ssrcs()); 462 receiver_info->ssrcs());
462 video_track_stats->frame_width = static_cast<uint32_t>( 463 video_track_stats->frame_width = static_cast<uint32_t>(
463 receiver_info->frame_width); 464 receiver_info->frame_width);
464 video_track_stats->frame_height = static_cast<uint32_t>( 465 video_track_stats->frame_height = static_cast<uint32_t>(
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 const std::string& type) { 1082 const std::string& type) {
1082 return CandidateTypeToRTCIceCandidateType(type); 1083 return CandidateTypeToRTCIceCandidateType(type);
1083 } 1084 }
1084 1085
1085 const char* DataStateToRTCDataChannelStateForTesting( 1086 const char* DataStateToRTCDataChannelStateForTesting(
1086 DataChannelInterface::DataState state) { 1087 DataChannelInterface::DataState state) {
1087 return DataStateToRTCDataChannelState(state); 1088 return DataStateToRTCDataChannelState(state);
1088 } 1089 }
1089 1090
1090 } // namespace webrtc 1091 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/rtcstats_integrationtest.cc ('k') | webrtc/api/rtcstatscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698