commit | 193f4bf6c1031d6eb2e4988181ac559cdfc7f568 | [log] [tgz] |
---|---|---|
author | Jaehyun Ko <kay.k@hpcnt.com> | Thu May 20 06:04:02 2021 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 20 08:40:11 2021 |
tree | 3a36e16fd4555922466d19984fddaa4d13a35d1e | |
parent | bd346d7439bbff6241d4612e615c6eab93f0c431 [diff] [blame] |
Replace legacy getStats with standard getStats in the iOS example Bug: webrtc:12688 Change-Id: I039cdae7647738d5f17b229c1137b72bf4aa7be0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/219580 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34063}
diff --git a/examples/objc/AppRTCMobile/ios/ARDStatsView.m b/examples/objc/AppRTCMobile/ios/ARDStatsView.m index bd97d30..867ba5b 100644 --- a/examples/objc/AppRTCMobile/ios/ARDStatsView.m +++ b/examples/objc/AppRTCMobile/ios/ARDStatsView.m
@@ -34,10 +34,8 @@ return self; } -- (void)setStats:(NSArray *)stats { - for (RTC_OBJC_TYPE(RTCLegacyStatsReport) * report in stats) { - [_statsBuilder parseStatsReport:report]; - } +- (void)setStats:(RTC_OBJC_TYPE(RTCStatisticsReport) *)stats { + _statsBuilder.stats = stats; _statsLabel.text = _statsBuilder.statsString; }