From 543336af99b5ecafea4c620921f5850055259e55 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sat, 14 Jan 2023 14:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4loading=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E4=BB=8E10=E7=A7=92=E6=94=B9=E6=88=9015=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/utils/LiveExoPlayerManager.java | 2 ++ .../main/java/com/yunbao/live/views/PortraitLiveManager.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 bbcddb532..9947f25be 100644 --- a/live/src/main/java/com/yunbao/live/utils/LiveExoPlayerManager.java +++ b/live/src/main/java/com/yunbao/live/utils/LiveExoPlayerManager.java @@ -365,10 +365,12 @@ public class LiveExoPlayerManager { Log.i(TAG, "release: 释放播放器"); player1.release(); player2.release(); + handler.removeCallbacks(buffRunnable); } public void clearUrl() { url = ""; + handler.removeCallbacks(buffRunnable); } public String getUrl() { diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 76bfa27d3..0bf2b0b5d 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -605,7 +605,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mLiveRoomViewHolder.showPrizePoolLevel(String.valueOf(giftPrizePoolLevel)); } } - liveHandler.postDelayed(loadRunnableGone, 10_000); + liveHandler.postDelayed(loadRunnableGone, 15_000); }