Quellcode durchsuchen

1.分辨率 全面屏默认380 非全面屏默认480

huangxiaodong vor 1 Jahr
Ursprung
Commit
05832ae3ed

+ 2 - 1
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+AppDelegate.m

@@ -183,7 +183,8 @@
             
         }
         else{
-            NSString *commondStr  = @"{\"data\":{\"height\":1920,\"width\":1080},\"type\":\"setPhoneSize\"}";
+            NSString *commondStr  = [RCCommandHelp setPhoneSizecommandWithWidth:1080 high:1920 dpi:480];
+            //NSString *commondStr  = @"{\"data\":{\"height\":1920,\"width\":1080},\"type\":\"setPhoneSize\"}";
             [[webSocketManager shareInstance] send_data:commondStr];
         }
     }

+ 2 - 1
创维盒子/双子星云手机/CloudPlayer/PlayerViewController.mm

@@ -2377,7 +2377,8 @@ static int  couneeee = 0;
         });
     }
     else{
-        NSString *commondStr  = @"{\"data\":{\"height\":1920,\"width\":1080},\"type\":\"setPhoneSize\"}";
+        NSString *commondStr  = [RCCommandHelp setPhoneSizecommandWithWidth:1080 high:1920 dpi:480];
+        //NSString *commondStr@"{\"data\":{\"height\":1920,\"width\":1080},\"type\":\"setPhoneSize\"}";
         [self send_data:commondStr];
     }
     

+ 1 - 1
创维盒子/双子星云手机/cloudPhone/websocket/RCCommandHelp.m

@@ -1265,7 +1265,7 @@ withType:(BOOL)isUploadType
 //    CGFloat H_PHONE = 640;
     
     
-    NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"width\":\"%d\",\"height\":\"%d\"},\"type\":\"setPhoneSize\"}",(int)W_PHONE,(int)H_PHONE];
+    NSString *dataStr = [NSString stringWithFormat:@"{\"data\":{\"width\":\"%d\",\"height\":\"%d\",\"dpi\":380},\"type\":\"setPhoneSize\"}",(int)W_PHONE,(int)H_PHONE];
     
     if (USENEWCONTROLLCOMMONDNO500)
     {