Przeglądaj źródła

1.本地渲染固定位1080*1920

huangxiaodong 2 lat temu
rodzic
commit
2dde1569be

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

@@ -39,8 +39,11 @@
     [self setLanguagesFun];
     
     //设置默认值
-    self.couldPhone_W_PHONE = 720.0;
-    self.couldPhone_H_PHONE = 1280.0;
+//    self.couldPhone_W_PHONE = 720.0;
+//    self.couldPhone_H_PHONE = 1280.0;
+    
+    self.couldPhone_W_PHONE = 1080.0;
+    self.couldPhone_H_PHONE = 1920.0;
     
     [[UIButton appearance] setExclusiveTouch:YES];
     

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

@@ -448,6 +448,11 @@ ComontAlretViewControllerDelegate>
                     
                     [weakSelf fristConnectNeedGiveAMsgFun];
                     
+                    //设置分辨率
+//                    NSString *commondStr  = @"{\"data\":{\"height\":1920,\"width\":1080,\"dpi\":480},\"type\":\"setPhoneSize\"}";
+//                    [weakSelf send_data:commondStr];
+                    
+                    
 //                    /*获取自己的用户名(电话号码)*/
 //                    NSString *selfUseName = nil;
 //                    NSDictionary *dict111 = [[UseAccountManage shareInstance] getLoginInfo];