|
|
@@ -146,6 +146,7 @@
|
|
|
_speedLabel = [[UILabel alloc] init];
|
|
|
_speedLabel.font = [UIFont systemFontOfSize:12.0];
|
|
|
_speedLabel.textColor = [UIColor whiteColor];
|
|
|
+ _speedLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
//_speedLabel.text = NSLocalizedString(@"webrtc_msg_delayed",nil);
|
|
|
[blackBgView addSubview:_speedLabel];
|
|
|
//_speedLabel.backgroundColor = [UIColor redColor];
|
|
|
@@ -153,7 +154,7 @@
|
|
|
[_speedLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
//make.centerX.mas_equalTo(1.5*laberW);
|
|
|
make.centerX.mas_equalTo(self.mas_centerX);
|
|
|
- make.width.mas_equalTo(laberW*2.9);
|
|
|
+ make.width.mas_equalTo(laberW*3.0);
|
|
|
make.height.mas_equalTo(laberH);
|
|
|
make.top.mas_equalTo(laberTop);
|
|
|
}];
|
|
|
@@ -500,7 +501,13 @@
|
|
|
_delayedLabel.textColor = [UIColor hwColor:@"#FF2855"];
|
|
|
}
|
|
|
|
|
|
- _delayedLabel.text = [[NSString alloc] initWithFormat:@"%ldms",delayedMS];
|
|
|
+ if(delayedMS >= 1000){
|
|
|
+ _delayedLabel.text = [[NSString alloc] initWithFormat:@"%lds",delayedMS/1000];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ _delayedLabel.text = [[NSString alloc] initWithFormat:@"%ldms",delayedMS];
|
|
|
+ }
|
|
|
+
|
|
|
//_PacketLossLabel.text = PacketLossStr;
|
|
|
_speedLabel.text = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"webrtc_msg_speed",nil),speedStr];
|
|
|
_fpsLabel.text = [[NSString alloc] initWithFormat:@"FPS:%@",fpsStr];
|