소스 검색

1.全面屏与非全面屏挤下线功能 修改云机对应DPI

huangxiaodong 8 달 전
부모
커밋
dd11e37fd6
2개의 변경된 파일10개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      创维盒子/双子星云手机.xcodeproj/project.pbxproj
  2. 8 1
      创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

+ 2 - 2
创维盒子/双子星云手机.xcodeproj/project.pbxproj

@@ -6111,7 +6111,7 @@
 				CODE_SIGN_IDENTITY = "Apple Development";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Manual;
-				CURRENT_PROJECT_VERSION = 9;
+				CURRENT_PROJECT_VERSION = 11;
 				DEVELOPMENT_TEAM = "";
 				"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 6SV76WTUUR;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -6193,7 +6193,7 @@
 				CODE_SIGN_IDENTITY = "Apple Development";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Manual;
-				CURRENT_PROJECT_VERSION = 9;
+				CURRENT_PROJECT_VERSION = 11;
 				DEVELOPMENT_TEAM = "";
 				"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 6SV76WTUUR;
 				FRAMEWORK_SEARCH_PATHS = (

+ 8 - 1
创维盒子/双子星云手机/webRtc/webRtcPlayerViewController.m

@@ -163,6 +163,13 @@
    
     NSString *roomName = _webRtcMsgMod.data.uniqueIdentifier;
     
+    NSInteger cardDensity = 480;
+    //判断是否是全屏
+    BOOL fullscreenType = [HWDataManager getBoolWithKey:Consn_player_full_screen_show];
+    if(fullscreenType){
+        cardDensity = 380;
+    }
+    
     NSInteger result = [_mediaStream start:url
                             ice:ice
                              sn:roomName
@@ -174,7 +181,7 @@
                         bitrate:3200//3000
                       cardWidth:(NSInteger)phoneSize.width//0//1080//0
                      cardHeight:(NSInteger)phoneSize.height//0//1920//0
-                    cardDensity:0
+                    cardDensity:cardDensity
                           token:@"vclusters"];
     
     HLog(@"result:%ld",result)