调整分辨率参数

移除调试用代码
This commit is contained in:
zlzw 2022-12-29 18:27:24 +08:00
parent 0b5598346e
commit 06b5f99930
3 changed files with 4 additions and 11 deletions

View File

@ -20,8 +20,8 @@ public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements IL
public static final int PLAY_MODEL_1080 = 2; public static final int PLAY_MODEL_1080 = 2;
public static int PLAY_MODEL = PLAY_MODEL_DEF; public static int PLAY_MODEL = PLAY_MODEL_DEF;
public static final String[] videoRatioHorizontal = new String[]{"_640_480", "_1280_720", "_1920_1080", "_180_180"}; public static final String[] videoRatioHorizontal = new String[]{"_848_480", "_1280_720", "_1920_1080"};
public static final String[] videoRatioVertical = new String[]{"_480_640", "_720_1280", "_1080_1920", "_180_180"}; public static final String[] videoRatioVertical = new String[]{"_480_848", "_720_1280", "_1080_1920"};
public static final String[] videoFps = new String[]{"_24", "_30"}; public static final String[] videoFps = new String[]{"_24", "_30"};
OnMicCallback onMicCallback;//连麦回调 OnMicCallback onMicCallback;//连麦回调
public EnterRoomNewModel roomModel; public EnterRoomNewModel roomModel;
@ -31,6 +31,7 @@ public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements IL
} }
public abstract void play(String url, int playModel); public abstract void play(String url, int playModel);
public abstract void switchStream(String url, int playModel); public abstract void switchStream(String url, int playModel);
public abstract void stopPlay(); public abstract void stopPlay();

View File

@ -837,13 +837,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
mLiveUserAdapter.setOnItemClickListener(new OnItemClickListener<UserBean>() { mLiveUserAdapter.setOnItemClickListener(new OnItemClickListener<UserBean>() {
@Override @Override
public void onItemClick(UserBean bean, int position) { public void onItemClick(UserBean bean, int position) {
if (position < 4) {
ToastUtil.show("切换:" + LiveRoomPlayViewHolder.videoRatioVertical[position]);
PortraitLiveManager.portraitLiveManager.test(position);
} else {
showUserDialog(bean.getId()); showUserDialog(bean.getId());
} }
}
}); });
mUserRecyclerView.setAdapter(mLiveUserAdapter); mUserRecyclerView.setAdapter(mLiveUserAdapter);
//聊天栏 //聊天栏

View File

@ -330,9 +330,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
} }
public void test(int model) {
mLivePlayViewHolder.play(mLiveBean.getPull(), model);
}
private Runnable sendFIm = new Runnable() { private Runnable sendFIm = new Runnable() {
@Override @Override