测试修改

This commit is contained in:
18401019693 2022-11-15 13:53:15 +08:00
parent 5eac127142
commit 5006b8414e
2 changed files with 11 additions and 8 deletions

View File

@ -89,14 +89,17 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
float videoWidth = param.getInt("EVT_PARAM1", 0); float videoWidth = param.getInt("EVT_PARAM1", 0);
float videoHeight = param.getInt("EVT_PARAM2", 0); float videoHeight = param.getInt("EVT_PARAM2", 0);
Log.e("视频流有", "videoWidth:" + videoWidth + " videoHeight:" + videoHeight); Log.e("视频流有", "videoWidth:" + videoWidth + " videoHeight:" + videoHeight);
if (videoWidth > 720) { if (mLiveBean.getLandscape() != 1){
cardParams.height = DpUtil.dp2px(130); if (videoWidth > 720) {
cardParams.width = DpUtil.dp2px(230); cardParams.height = DpUtil.dp2px(130);
} else { cardParams.width = DpUtil.dp2px(230);
cardParams.height = DpUtil.dp2px(224); } else {
cardParams.width = DpUtil.dp2px(126); cardParams.height = DpUtil.dp2px(224);
cardParams.width = DpUtil.dp2px(126);
}
layout.setLayoutParams(cardParams);
} }
layout.setLayoutParams(cardParams);
} }
@Override @Override

View File

@ -25,7 +25,7 @@ ext {
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S", baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
// true表示谷歌支付 false // true表示谷歌支付 false
isGooglePlay : true, isGooglePlay : false,
// //
isUploadLog : true isUploadLog : true
] ]