diff --git a/live/src/main/java/com/yunbao/live/utils/LiveExoPlayerManager.java b/live/src/main/java/com/yunbao/live/utils/LiveExoPlayerManager.java index deb8cba68..ae4887ba7 100644 --- a/live/src/main/java/com/yunbao/live/utils/LiveExoPlayerManager.java +++ b/live/src/main/java/com/yunbao/live/utils/LiveExoPlayerManager.java @@ -35,8 +35,6 @@ public class LiveExoPlayerManager { this.mContext = mContext; player1 = new ExoPlayer.Builder(mContext).build(); player2 = new ExoPlayer.Builder(mContext).build(); - player1.setVideoScalingMode(VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING); - player2.setVideoScalingMode(VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING); handler = new Handler(Looper.getMainLooper()); setListener(); setAnalyticsListener(); @@ -49,6 +47,7 @@ public class LiveExoPlayerManager { public void setMainView(StyledPlayerView mainView) { this.mainView = mainView; + this.mainView.setKeepContentOnPlayerReset(true); } private void setAnalyticsListener() {