调整播放器默认流不拼接参数

This commit is contained in:
zlzw 2023-01-08 18:08:00 +08:00
parent 182e46799a
commit cf85870810
2 changed files with 4 additions and 4 deletions

View File

@ -39,10 +39,10 @@ public class LiveExoPlayerManager {
public LiveExoPlayerManager(Context mContext) {
this.mContext = mContext;
DefaultLoadControl control = new DefaultLoadControl.Builder()
.setPrioritizeTimeOverSizeThresholds(true)
.setPrioritizeTimeOverSizeThresholds(false)
.setBackBuffer(15_000, true)
.setBufferDurationsMs(100,
15_000,
.setBufferDurationsMs(150,
5_000,
50,
100)
.build();

View File

@ -306,7 +306,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLivePlayViewHolder.setLiveBean(mLiveBean);
mLivePlayViewHolder.setCover(mLiveBean.getAvatar());
mLivePlayViewHolder.setLiveBeanLandscape(mLiveBean.getLandscape());
mLivePlayViewHolder.play(mLiveBean.getPull(), LiveRoomPlayViewHolder.PLAY_MODEL_720);
mLivePlayViewHolder.play(mLiveBean.getPull(), LiveRoomPlayViewHolder.PLAY_MODEL_DEF);
mLivePlayViewHolder.setOnMicCallback(new LiveRoomPlayViewHolder.OnMicCallback() {
@Override
public void onMikUpdate() {