aboutsummaryrefslogtreecommitdiff
path: root/examples/objc/AppRTCMobile/ARDAppClient.m
diff options
context:
space:
mode:
Diffstat (limited to 'examples/objc/AppRTCMobile/ARDAppClient.m')
-rw-r--r--examples/objc/AppRTCMobile/ARDAppClient.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/objc/AppRTCMobile/ARDAppClient.m b/examples/objc/AppRTCMobile/ARDAppClient.m
index ccd5bb0662..fa6a960a54 100644
--- a/examples/objc/AppRTCMobile/ARDAppClient.m
+++ b/examples/objc/AppRTCMobile/ARDAppClient.m
@@ -191,9 +191,8 @@ static int const kKbpsMultiplier = 1000;
repeats:YES
timerHandler:^{
ARDAppClient *strongSelf = weakSelf;
- [strongSelf.peerConnection statsForTrack:nil
- statsOutputLevel:RTCStatsOutputLevelDebug
- completionHandler:^(NSArray *stats) {
+ [strongSelf.peerConnection statisticsWithCompletionHandler:^(
+ RTC_OBJC_TYPE(RTCStatisticsReport) * stats) {
dispatch_async(dispatch_get_main_queue(), ^{
ARDAppClient *strongSelf = weakSelf;
[strongSelf.delegate appClient:strongSelf didGetStats:stats];