diff --git a/Classes/CallSideMenuView.m b/Classes/CallSideMenuView.m index 60b34379c..b61cd3099 100644 --- a/Classes/CallSideMenuView.m +++ b/Classes/CallSideMenuView.m @@ -109,14 +109,29 @@ [result appendString:@"\n"]; if (stats != NULL) { - [result appendString:[NSString stringWithFormat:@"Upload bandwidth: %1.1f kbits/s", stats->upload_bandwidth]]; - [result appendString:@"\n"]; [result appendString:[NSString stringWithFormat:@"Download bandwidth: %1.1f kbits/s", stats->download_bandwidth]]; [result appendString:@"\n"]; + [result appendString:[NSString stringWithFormat:@"Upload bandwidth: %1.1f kbits/s", stats->upload_bandwidth]]; + [result appendString:@"\n"]; [result appendString:[NSString stringWithFormat:@"ICE state: %@", [self.class iceToString:stats->ice_state]]]; [result appendString:@"\n"]; + // RTP stats section (packet loss count, etc) + rtp_stats_t rtp_stats = linphone_call_stats_get_rtp_stats(stats); + [result + appendString:[NSString stringWithFormat: + @"RTP packets: %llu total, %lld cum loss, %llu discarded, %llu OOT, %llu bad", + rtp_stats.packet_recv, rtp_stats.cum_packet_loss, rtp_stats.discarded, + rtp_stats.outoftime, rtp_stats.bad]]; + [result appendString:@"\n"]; + [result appendString:[NSString stringWithFormat:@"Sender loss rate: %.2f%%", + linphone_call_stats_get_sender_loss_rate(stats)]]; + [result appendString:@"\n"]; + [result appendString:[NSString stringWithFormat:@"Receiver loss rate: %.2f%%", + linphone_call_stats_get_receiver_loss_rate(stats)]]; + [result appendString:@"\n"]; + if (stream == LinphoneStreamTypeVideo) { MSVideoSize sentSize = linphone_call_params_get_sent_video_size(params); MSVideoSize recvSize = linphone_call_params_get_received_video_size(params); diff --git a/Classes/CallSideMenuView.xib b/Classes/CallSideMenuView.xib index efe501257..80e287cea 100644 --- a/Classes/CallSideMenuView.xib +++ b/Classes/CallSideMenuView.xib @@ -1,8 +1,8 @@ - + - + @@ -47,9 +47,4 @@ Video: down - - - - - diff --git a/Classes/LinphoneUI/Base.lproj/UICompositeView.xib b/Classes/LinphoneUI/Base.lproj/UICompositeView.xib index baa4d9320..20bf9702e 100644 --- a/Classes/LinphoneUI/Base.lproj/UICompositeView.xib +++ b/Classes/LinphoneUI/Base.lproj/UICompositeView.xib @@ -1,5 +1,5 @@ - + @@ -38,11 +38,6 @@ - - - - - @@ -52,6 +47,11 @@ + + + + + @@ -71,11 +71,6 @@ - - - - - @@ -85,6 +80,11 @@ + + + + + diff --git a/Classes/LinphoneUI/UICompositeView.m b/Classes/LinphoneUI/UICompositeView.m index d17a94655..61fa6f19d 100644 --- a/Classes/LinphoneUI/UICompositeView.m +++ b/Classes/LinphoneUI/UICompositeView.m @@ -575,9 +575,9 @@ statusBarFrame.origin.y = origin - statusBarFrame.size.height; } - // 2. side menu - fixed size, always starting below status bar + // 2. side menu - fixed size, always starting below status bar (hack: except in fullscreen) CGRect sideMenuFrame = viewFrame; - sideMenuFrame.origin.y = origin + statusBarFrame.size.height; + sideMenuFrame.origin.y = origin + (fullscreen ? statusBarFrame.size.height : 0); sideMenuFrame.size.height -= sideMenuFrame.origin.y; if (!currentViewDescription.sideMenuEnabled) { // really hide; -width won't be enough since some animations may use this...