瀏覽代碼

1.逻辑优化

huangxiaodong 11 月之前
父節點
當前提交
a38ee9af42
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

+ 6 - 1
创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

@@ -360,7 +360,7 @@
     [self initPointForControlBtnFun];
     
     _testLostLabel = [[UILabel alloc] init];
-    _testLostLabel.textColor = [UIColor yellowColor];
+    _testLostLabel.textColor = [UIColor greenColor];
     _testLostLabel.textAlignment = NSTextAlignmentCenter;
     _testLostLabel.font = [UIFont systemFontOfSize:14.0];
     _testLostLabel.numberOfLines = 0;
@@ -1342,6 +1342,11 @@
             //FPS
             __block NSString*lostDataStr = [[NSString alloc] initWithFormat:@"总包数:%ld --总丢包数:%ld--3秒接受到包数:%ld---3秒丢包数:%ld---3秒丢包率:%0.2f%%",lasPacketsReceived,lastAlllostData,(NSInteger)NsecondReceivedData,(NSInteger)NsecondLostData,prelostRate];
             
+            webrtcServerModel * webrtcServerMod = ksharedAppDelegate.bestWebrtcServerModel;
+            NSString *signallingUrl = [[NSString alloc] initWithFormat:@"%@:%@--\n%@:%@--%.0fms",webrtcServerMod.signallingIp,webrtcServerMod.signallingPort,webrtcServerMod.turnIp,webrtcServerMod.turnPort,webrtcServerMod.delayedms];
+            
+            lostDataStr = [[NSString alloc] initWithFormat:@"%@\n%@",lostDataStr,signallingUrl];
+            
             mainBlock(^{
                 self->_testLostLabel.text = lostDataStr;
             });