|
|
@@ -200,7 +200,7 @@
|
|
|
// make.top.mas_equalTo(laberTop);
|
|
|
// }];
|
|
|
|
|
|
- [self setWebRctMsgBydelayed:0 withPacketLoss:@"-" withSpeed:@"-" withFPS:@"-"];
|
|
|
+ [self setWebRctMsgBydelayed:0 withPacketLoss:0.0 withSpeed:@"-" withFPS:@"-"];
|
|
|
|
|
|
/***************************分辨率*******************************************************/
|
|
|
|
|
|
@@ -573,7 +573,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-- (void)setWebRctMsgBydelayed:(NSInteger)delayedMS withPacketLoss:(NSInteger)PacketLoss withSpeed:(NSString*)speedStr withFPS:(NSString*)fpsStr
|
|
|
+- (void)setWebRctMsgBydelayed:(NSInteger)delayedMS withPacketLoss:(double)PacketLoss withSpeed:(NSString*)speedStr withFPS:(NSString*)fpsStr
|
|
|
{
|
|
|
//网络延迟: [0, 50ms)= 绿色 #22A082 ,[50ms, 100ms= 黄色, [100ms, ∞)= 红色 #FF2855
|
|
|
|
|
|
@@ -595,7 +595,7 @@
|
|
|
}
|
|
|
|
|
|
NSString*LossleftStr = NSLocalizedString(@"webrtc_msg_PacketLoss",nil);
|
|
|
- NSString*LossRightStr = [[NSString alloc] initWithFormat:@"%ld%%",PacketLoss];
|
|
|
+ NSString*LossRightStr = [[NSString alloc] initWithFormat:@"%.02f%%",PacketLoss];
|
|
|
NSString *LossfullTitle = [[NSString alloc] initWithFormat:@"%@%@",LossleftStr,LossRightStr];
|
|
|
NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:LossfullTitle];
|
|
|
NSRange rightRange = NSMakeRange([LossfullTitle rangeOfString:LossRightStr].location, LossRightStr.length);
|