From baa2ec127f52fc8ebed474d8e0c3bc389132ee8d Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 29 May 2023 11:25:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=92=AD=E6=94=BE=E5=99=A8?= =?UTF-8?q?=E5=9C=A8=E5=81=9C=E6=AD=A2=E6=92=AD=E6=94=BE=E6=97=B6=E6=8A=8A?= =?UTF-8?q?play2=E4=B9=9F=E4=B8=80=E5=B9=B6=E5=81=9C=E6=AD=A2?= 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, 3 insertions(+) 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 ae558dcdf..77acc0f12 100644 --- a/live/src/main/java/com/yunbao/live/utils/LiveExoPlayerManager.java +++ b/live/src/main/java/com/yunbao/live/utils/LiveExoPlayerManager.java @@ -339,6 +339,9 @@ public class LiveExoPlayerManager { if (getNowPlayer() != null) { getNowPlayer().stop(); } + if (getNextPlayer() != null && getNextPlayer().isPlaying()) { + getNextPlayer().stop(); + } clearUrl(); }