|
|
@@ -100,33 +100,33 @@
|
|
|
}];
|
|
|
|
|
|
//丢包
|
|
|
- UILabel * PacketLossTipLabel = [[UILabel alloc] init];
|
|
|
- PacketLossTipLabel.font = [UIFont systemFontOfSize:12.0];
|
|
|
- PacketLossTipLabel.textColor = [UIColor whiteColor];
|
|
|
- PacketLossTipLabel.text = NSLocalizedString(@"webrtc_msg_PacketLoss",nil);
|
|
|
- [blackBgView addSubview:PacketLossTipLabel];
|
|
|
- //delayedTipLabel.backgroundColor = [UIColor redColor];
|
|
|
-
|
|
|
- [PacketLossTipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.centerX.mas_equalTo(- 1.5*laberW -10);
|
|
|
- make.width.mas_equalTo(laberW);
|
|
|
- make.height.mas_equalTo(laberH);
|
|
|
- make.top.mas_equalTo(laberTop);
|
|
|
- }];
|
|
|
-
|
|
|
- _PacketLossLabel = [[UILabel alloc] init];
|
|
|
- _PacketLossLabel.font = [UIFont systemFontOfSize:12.0];
|
|
|
- _PacketLossLabel.textColor = [UIColor hwColor:@"#FF2855"];
|
|
|
- //_PacketLossLabel.text = NSLocalizedString(@"webrtc_msg_delayed",nil);
|
|
|
- [blackBgView addSubview:_PacketLossLabel];
|
|
|
- //_PacketLossLabel.backgroundColor = [UIColor redColor];
|
|
|
-
|
|
|
- [_PacketLossLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.mas_equalTo(PacketLossTipLabel.mas_right).offset(0);
|
|
|
- make.width.mas_equalTo(laberW+5);
|
|
|
- make.height.mas_equalTo(laberH);
|
|
|
- make.top.mas_equalTo(laberTop);
|
|
|
- }];
|
|
|
+// UILabel * PacketLossTipLabel = [[UILabel alloc] init];
|
|
|
+// PacketLossTipLabel.font = [UIFont systemFontOfSize:12.0];
|
|
|
+// PacketLossTipLabel.textColor = [UIColor whiteColor];
|
|
|
+// PacketLossTipLabel.text = NSLocalizedString(@"webrtc_msg_PacketLoss",nil);
|
|
|
+// [blackBgView addSubview:PacketLossTipLabel];
|
|
|
+// //delayedTipLabel.backgroundColor = [UIColor redColor];
|
|
|
+//
|
|
|
+// [PacketLossTipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+// make.centerX.mas_equalTo(- 1.5*laberW -10);
|
|
|
+// make.width.mas_equalTo(laberW);
|
|
|
+// make.height.mas_equalTo(laberH);
|
|
|
+// make.top.mas_equalTo(laberTop);
|
|
|
+// }];
|
|
|
+//
|
|
|
+// _PacketLossLabel = [[UILabel alloc] init];
|
|
|
+// _PacketLossLabel.font = [UIFont systemFontOfSize:12.0];
|
|
|
+// _PacketLossLabel.textColor = [UIColor hwColor:@"#FF2855"];
|
|
|
+// //_PacketLossLabel.text = NSLocalizedString(@"webrtc_msg_delayed",nil);
|
|
|
+// [blackBgView addSubview:_PacketLossLabel];
|
|
|
+// //_PacketLossLabel.backgroundColor = [UIColor redColor];
|
|
|
+//
|
|
|
+// [_PacketLossLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+// make.left.mas_equalTo(PacketLossTipLabel.mas_right).offset(0);
|
|
|
+// make.width.mas_equalTo(laberW+5);
|
|
|
+// make.height.mas_equalTo(laberH);
|
|
|
+// make.top.mas_equalTo(laberTop);
|
|
|
+// }];
|
|
|
|
|
|
//带宽
|
|
|
// UILabel * speedLossTipLabel = [[UILabel alloc] init];
|
|
|
@@ -151,7 +151,8 @@
|
|
|
//_speedLabel.backgroundColor = [UIColor redColor];
|
|
|
|
|
|
[_speedLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.centerX.mas_equalTo(1.5*laberW);
|
|
|
+ //make.centerX.mas_equalTo(1.5*laberW);
|
|
|
+ make.centerX.mas_equalTo(self.mas_centerX);
|
|
|
make.width.mas_equalTo(laberW*2.9);
|
|
|
make.height.mas_equalTo(laberH);
|
|
|
make.top.mas_equalTo(laberTop);
|
|
|
@@ -500,7 +501,7 @@
|
|
|
}
|
|
|
|
|
|
_delayedLabel.text = [[NSString alloc] initWithFormat:@"%ldms",delayedMS];
|
|
|
- _PacketLossLabel.text = PacketLossStr;
|
|
|
+ //_PacketLossLabel.text = PacketLossStr;
|
|
|
_speedLabel.text = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"webrtc_msg_speed",nil),speedStr];
|
|
|
_fpsLabel.text = [[NSString alloc] initWithFormat:@"FPS:%@",fpsStr];
|
|
|
}
|