|
@@ -361,7 +361,7 @@
|
|
|
|
|
|
_testLostLabel = [[UILabel alloc] init];
|
|
|
_testLostLabel.textColor = [UIColor greenColor];
|
|
|
- _testLostLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
+ //_testLostLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
_testLostLabel.font = [UIFont systemFontOfSize:14.0];
|
|
|
_testLostLabel.numberOfLines = 0;
|
|
|
[self.view addSubview:_testLostLabel];
|
|
@@ -1343,7 +1343,15 @@
|
|
|
__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];
|
|
|
+ NSMutableString *signallingUrl = [[NSMutableString alloc] initWithFormat:@"当前使用:%@:%@--\n%@:%@--%.0fms\n\n",webrtcServerMod.signallingIp,webrtcServerMod.signallingPort,webrtcServerMod.turnIp,webrtcServerMod.turnPort,webrtcServerMod.delayedms];
|
|
|
+
|
|
|
+ for (webrtcServerModel *model in ksharedAppDelegate.DeviceWebRtcMsgMod.data.webrtcServerList) {
|
|
|
+ NSString *curStr = [[NSMutableString alloc] initWithFormat:@"%@:%@--\n%@:%@--%.0fms\n",model.signallingIp,model.signallingPort,model.turnIp,model.turnPort,model.delayedms];
|
|
|
+
|
|
|
+ [signallingUrl appendString:curStr];
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
lostDataStr = [[NSString alloc] initWithFormat:@"%@\n%@",lostDataStr,signallingUrl];
|
|
|
|