Przeglądaj źródła

1.推流延时颜色显示优化

huangxiaodong 11 miesięcy temu
rodzic
commit
7836676d52

+ 4 - 4
创维盒子/双子星云手机/CloudPlayer/View/playerSetView.m

@@ -577,14 +577,14 @@
 {
     //网络延迟: [0, 50ms)= 绿色 #22A082 ,[50ms, 100ms= 黄色, [100ms, ∞)= 红色 #FF2855
     
-    if (delayedMS < 50) {
-        _delayedLabel.textColor = [UIColor hwColor:@"22A082"];
+    if (delayedMS >= 100) {
+        _delayedLabel.textColor = [UIColor hwColor:@"#FF2855"];
     }
-    else if (delayedMS < 100){
+    else if (delayedMS >= 50){
         _delayedLabel.textColor = [UIColor yellowColor];
     }
     else{
-        _delayedLabel.textColor = [UIColor hwColor:@"#FF2855"];
+        _delayedLabel.textColor = [UIColor hwColor:@"22A082"];
     }
     
     if(delayedMS >= 1000){