From 2393a53466a40149eeba8793b6e6bea244c989e7 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sat, 7 Jan 2023 10:13:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E4=B8=BA=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2=E6=B8=B2=E6=9F=93=E5=B1=82=E5=AF=BC=E8=87=B4=E5=9C=A8?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=88=86=E8=BE=A8=E7=8E=87=E6=97=B6=E4=BC=9A?= =?UTF-8?q?=E9=BB=91=E5=B1=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/utils/LiveExoPlayerManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() {