From 270a69c2dd4fe77e427dd0cdbdb461422a7662a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Turnel?= Date: Tue, 12 Sep 2017 17:05:16 +0200 Subject: [PATCH] Add estimated download bandwidth stat in side menu --- Classes/CallSideMenuView.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Classes/CallSideMenuView.m b/Classes/CallSideMenuView.m index c7b702f16..32a769338 100644 --- a/Classes/CallSideMenuView.m +++ b/Classes/CallSideMenuView.m @@ -145,6 +145,11 @@ [result appendString:[NSString stringWithFormat:@"Upload bandwidth: %1.1f kbits/s", linphone_call_stats_get_upload_bandwidth(stats)]]; [result appendString:@"\n"]; + if (stream == LinphoneStreamTypeVideo) { + [result appendString:[NSString stringWithFormat:@"Estimated download bandwidth: %1.1f kbits/s", + linphone_call_stats_get_estimated_download_bandwidth(stats)]]; + [result appendString:@"\n"]; + } [result appendString:[NSString stringWithFormat:@"ICE state: %@", [self.class iceToString:linphone_call_stats_get_ice_state(stats)]]];